From: John (J5) Palmieri Date: Mon, 14 Jan 2008 23:17:53 +0000 (-0500) Subject: watch for file creates in dnotify X-Git-Tag: dbus-1.1.3~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf5d0b6fab515948155d0816ed84657f5e8ebb3;p=thirdparty%2Fdbus.git watch for file creates in dnotify 2008-01-14 John (J5) Palmieri * patch by Frederic Crozat * bus/dir-watch-dnotify.c (bus_watch_directory): watch for file creates also --- diff --git a/ChangeLog b/ChangeLog index a8a63e0de..6dd93d63e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,15 @@ +2008-01-14 John (J5) Palmieri + + * patch by Frederic Crozat + + * bus/dir-watch-dnotify.c (bus_watch_directory): watch for file + creates also + 2008-01-14 John (J5) Palmieri * patch by Kimmo Hämäläinen - * dbus-1.0.2/dbus/dbus-transport-socket.c(do_reading): return message + * dbus/dbus-transport-socket.c(do_reading): return message loader buffer in case of OOM (FDO Bug#12666) 2008-01-14 John (J5) Palmieri diff --git a/bus/dir-watch-dnotify.c b/bus/dir-watch-dnotify.c index 88d598a9f..0f6390cdf 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);