watcher: Avoid loop when adding a file owned by someone else fails in indirect mode because its permissions cannot be modified.

Adding the file moved it to the annex, and then tried to set the mode.
Error unwind then moved the file back, and so the watcher saw the file get
deleted and then added back, and so tried again..
This commit is contained in:
Joey Hess 2013-11-07 15:18:54 -04:00
parent 4f373503f2
commit 9ff229a798
3 changed files with 21 additions and 11 deletions

View file

@ -52,3 +52,5 @@ failed
Turns out that file is owned by root, so it's an expected failure. But the webapp should simply skip this file, not loop over it.
The workaround is obviously to give this file to the proper user. --[[anarcat]]
> [[fixed|done]] --[[Joey]]