diff --git a/src/system/kernel/fs/node_monitor.cpp b/src/system/kernel/fs/node_monitor.cpp index 37f07f8520..6c345c811b 100644 --- a/src/system/kernel/fs/node_monitor.cpp +++ b/src/system/kernel/fs/node_monitor.cpp @@ -837,8 +837,10 @@ notify_entry_moved(mount_id device, vnode_id fromDirectory, get_interested_monitor_listeners(device, fromDirectory, B_WATCH_DIRECTORY, interestedListeners, interestedListenerCount); // ... for the target directory - get_interested_monitor_listeners(device, toDirectory, B_WATCH_DIRECTORY, - interestedListeners, interestedListenerCount); + if (toDirectory != fromDirectory) { + get_interested_monitor_listeners(device, toDirectory, B_WATCH_DIRECTORY, + interestedListeners, interestedListenerCount); + } if (interestedListenerCount == 0) return B_OK;