]> code.delx.au - gnu-emacs/commitdiff
Fix double-reporting of rename events with inotify
authorTassilo Horn <tsdh@gnu.org>
Tue, 8 Sep 2015 18:55:29 +0000 (20:55 +0200)
committerTassilo Horn <tsdh@gnu.org>
Tue, 8 Sep 2015 18:59:45 +0000 (20:59 +0200)
* lisp/filenotify.el (file-notify-callback): Fix double-reporting
of rename events with inotify (bug#21435).

lisp/filenotify.el

index 5822cf0cc7e54b16dccd495d661832c33d12358b..4af9e90a35ad84b40937ecc7ea23bb62839ca8ad 100644 (file)
@@ -177,9 +177,9 @@ EVENT is the cadr of the event in `file-notify-handle-event'
                               (car file-notify--pending-event)))
                   ;; If the source is handled by another watch, we
                   ;; must fire the rename event there as well.
-                  (when (not (eq (file-notify--descriptor desc)
-                                 (file-notify--descriptor
-                                  (caar file-notify--pending-event))))
+                  (when (not (equal (file-notify--descriptor desc)
+                                    (file-notify--descriptor
+                                     (caar file-notify--pending-event))))
                     (setq pending-event
                           `((,(caar file-notify--pending-event)
                              renamed ,file ,file1)