From: Yu Watanabe Date: Tue, 23 Oct 2018 03:18:33 +0000 (+0900) Subject: udev-event: fix condition to create pipe fds X-Git-Tag: v240~483^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e48548fed77b607fa1f47c4418605549a2df102;p=thirdparty%2Fsystemd.git udev-event: fix condition to create pipe fds The bug was introduced by feaa6db7ac287b34887f75c27a7efc2107a7b691. --- diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 18cea2fc217..58d43be3404 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -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);