chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
path: don't use IN_ATTRIB on parent dirs when watching a file, since those cannot...
[elogind.git]
/
src
/
path.c
diff --git
a/src/path.c
b/src/path.c
index bd40ab6f99bfa1fc41583e67125abedcf496dc50..1455b47995e4943f2bf3affb10d8b558e2fa3951 100644
(file)
--- a/
src/path.c
+++ b/
src/path.c
@@
-223,9
+223,9
@@
static int path_watch_one(Path *p, PathSpec *s) {
/* Trim the path at the last slash. Keep the slash if it's the root dir. */
slash[slash == k] = 0;
/* Trim the path at the last slash. Keep the slash if it's the root dir. */
slash[slash == k] = 0;
- flags = IN_
DELETE_SELF|IN_MOVE_SELF|IN_ATTRIB
;
+ flags = IN_
MOVE_SELF
;
if (!exists)
if (!exists)
- flags |= IN_CREATE | IN_MOVED_TO;
+ flags |= IN_
DELETE_SELF | IN_ATTRIB | IN_
CREATE | IN_MOVED_TO;
if (inotify_add_watch(s->inotify_fd, k, flags) >= 0)
exists = true;
if (inotify_add_watch(s->inotify_fd, k, flags) >= 0)
exists = true;