]> err.no Git - systemd/commitdiff
fix inotify to work not only once
authorMatthias Schwarzott <zzam@gentoo.org>
Thu, 26 Jul 2007 11:04:13 +0000 (13:04 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 26 Jul 2007 11:04:13 +0000 (13:04 +0200)
udevd.c

diff --git a/udevd.c b/udevd.c
index 69572c6268789a896603f3b302d65439219fe2f8..8f56de6ffb7670f12e6d732062fcc9d97db68165 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -1202,7 +1202,7 @@ int main(int argc, char *argv[], char *envp[])
 
                                reload_config = 1;
                                buf = malloc(nbytes);
-                               if (buf != NULL) {
+                               if (buf == NULL) {
                                        err("error getting buffer for inotify, disable watching");
                                        close(inotify_fd);
                                        inotify_fd = -1;