diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2022-09-16 17:23:59 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2022-09-16 17:23:59 +0200 |
commit | 2053e350f3d39e312a6a4b18c05fe8abefc5ee95 (patch) | |
tree | d99179160ad24af86db9d0891fd283cd2208fb08 /lisp/filenotify.el | |
parent | f8c5a82ba15a6217b52dad66bf5fdf6f064a9b42 (diff) | |
download | emacs-2053e350f3d39e312a6a4b18c05fe8abefc5ee95.tar.gz |
Enable `dont-follow' for inotify file notifications
* doc/lispref/os.texi (File Notifications): Symlinks aren't followed.
* lisp/filenotify.el (file-notify--add-watch-inotify):
Add `dont-follow' flag.
* lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
Suppress errors when reading process output.
* test/lisp/filenotify-tests.el (file-notify-test11-symlinks)
(file-notify-test11-symlinks-remote): New tests.
Diffstat (limited to 'lisp/filenotify.el')
-rw-r--r-- | lisp/filenotify.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/filenotify.el b/lisp/filenotify.el index 94e07289e32..6b13ed0b725 100644 --- a/lisp/filenotify.el +++ b/lisp/filenotify.el @@ -339,6 +339,7 @@ DESC is the back-end descriptor. ACTIONS is a list of: "Add a watch for FILE in DIR with FLAGS, using inotify." (inotify-add-watch dir (append + '(dont-follow) (and (memq 'change flags) '(create delete delete-self modify move-self move)) (and (memq 'attribute-change flags) |