watch for file creates in dnotify
authorJohn (J5) Palmieri <johnp@redhat.com>
Mon, 14 Jan 2008 23:17:53 +0000 (18:17 -0500)
committerJohn (J5) Palmieri <johnp@redhat.com>
Mon, 14 Jan 2008 23:17:53 +0000 (18:17 -0500)
2008-01-14  John (J5) Palmieri  <johnp@redhat.com>

* patch by Frederic Crozat <fcrozat at mandriva dot com>

* bus/dir-watch-dnotify.c (bus_watch_directory): watch for file
creates also

ChangeLog
bus/dir-watch-dnotify.c

index a8a63e0..6dd93d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,15 @@
 2008-01-14  John (J5) Palmieri  <johnp@redhat.com>
 
+       * patch by Frederic Crozat <fcrozat at mandriva dot com>
+
+       * bus/dir-watch-dnotify.c (bus_watch_directory): watch for file
+       creates also
+
+2008-01-14  John (J5) Palmieri  <johnp@redhat.com>
+
        * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
 
-       * 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  <johnp@redhat.com>
index 88d598a..0f6390c 100644 (file)
@@ -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);