]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-event: fix condition to create pipe fds
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 03:18:33 +0000 (12:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 19:46:48 +0000 (04:46 +0900)
The bug was introduced by feaa6db7ac287b34887f75c27a7efc2107a7b691.

src/udev/udev-event.c

index 18cea2fc2178b016e67e4dd1d81ee0ac0464b1a5..58d43be340406461e29adf609729a3952e9c851e 100644 (file)
@@ -660,7 +660,7 @@ int udev_event_spawn(struct udev_event *event,
         int r;
 
         /* pipes from child to parent */
-        if (!result || log_get_max_level() >= LOG_INFO)
+        if (result || log_get_max_level() >= LOG_INFO)
                 if (pipe2(outpipe, O_NONBLOCK|O_CLOEXEC) != 0)
                         return log_error_errno(errno, "Failed to create pipe for command '%s': %m", cmd);