git-annex/Assistant/Threads
Joey Hess 12a0ca9656
assistant: Fix a race condition that could cause a pointer file to get ingested into the annex
This was caused by commit fb8ab2469d putting
an isPointerFile check in the wrong place. So if the file was not a pointer
file at that point, but got replaced by one before the file got locked
down, the pointer file would be ingested into the annex.

The fix is simply to move the isPointerFile check to after safeToAdd locks
down the file. Now if the file changes to a pointer file after the
isPointerFile check, ingestion will see that it changed after lockdown,
and will refuse to add it to the annex.

Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
2024-07-02 12:25:30 -04:00
..
Committer.hs assistant: Fix a race condition that could cause a pointer file to get ingested into the annex 2024-07-02 12:25:30 -04:00
ConfigMonitor.hs add git ls-tree --long parser 2021-03-23 12:47:00 -04:00
Cronner.hs A few more of typo fixes/skip as detected with bleeding edge codespell 2024-05-01 20:06:08 -04:00
DaemonStatus.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Exporter.hs convert checkAvailable to use availability rather than localpath 2023-08-16 15:57:30 -04:00
Glacier.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Merger.hs sync: When in an adjusted branch, merge changes from the original branch 2023-07-06 12:42:24 -04:00
MountWatcher.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
NetWatcher.hs run codespell throughout fixing typos automagically 2024-05-01 15:46:21 -04:00
PairListener.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
ProblemFixer.hs convert checkAvailable to use availability rather than localpath 2023-08-16 15:57:30 -04:00
Pusher.hs convert checkAvailable to use availability rather than localpath 2023-08-16 15:57:30 -04:00
RemoteControl.hs convert to withCreateProcess for async exception safety 2020-06-04 12:44:09 -04:00
SanityChecker.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
TransferPoller.hs fix transfer lock file for Download to not include uuid 2024-03-25 14:47:46 -04:00
Transferrer.hs propagate git-annex -c on to transferrer child process 2020-12-15 11:36:25 -04:00
TransferScanner.hs new matching options --want-get-by and --want-drop-by 2022-07-28 13:26:03 -04:00
TransferWatcher.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Upgrader.hs fix windows assistant upgrade glitch 2020-11-19 12:50:25 -04:00
UpgradeWatcher.hs finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
Watcher.hs assistant: Fix a race condition that could cause a pointer file to get ingested into the annex 2024-07-02 12:25:30 -04:00
WebApp.hs webapp: Added --port option, and annex.port config 2024-01-25 14:08:36 -04:00