chiark / gitweb /
udevd: initialize fds, for proper close() on exit
[elogind.git] / extras / collect / collect.c
index c4523f1d18b8ae827dc7e466529c461257569ad0..b5670516b4384b22f10bc9b531b24aab54c1cd37 100644 (file)
@@ -34,7 +34,7 @@
 #include "libudev.h"
 #include "libudev-private.h"
 
-#define TMPFILE                        "/dev/.udev/collect"
+#define TMPFILE                        "/dev/.run/udev/collect"
 #define BUFSIZE                        16
 #define UDEV_ALARM_TIMEOUT     180
 
@@ -331,8 +331,8 @@ static void everybody(void)
                case STATE_CONFIRMED:
                        state = "confirmed";
                        break;
-               fprintf(stderr, "ID: %s=%s\n", him->name, state);
                }
+               fprintf(stderr, "ID: %s=%s\n", him->name, state);
        }
 }