summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
Diffstat (limited to 'bus')
-rw-r--r--bus/dir-watch-dnotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/dir-watch-dnotify.c b/bus/dir-watch-dnotify.c
index 88d598a9..0f6390cd 100644
--- a/bus/dir-watch-dnotify.c
+++ b/bus/dir-watch-dnotify.c
@@ -60,7 +60,7 @@ bus_watch_directory (const char *dir, BusContext *context)
goto out;
}
- if (fcntl (fd, F_NOTIFY, DN_DELETE|DN_RENAME|DN_MODIFY) == -1)
+ if (fcntl (fd, F_NOTIFY, DN_CREATE|DN_DELETE|DN_RENAME|DN_MODIFY) == -1)
{
_dbus_warn ("Cannot setup D_NOTIFY for '%s' error '%s'\n", dir, _dbus_strerror (errno));
close (fd);