From: Yu Watanabe Date: Thu, 11 Aug 2022 19:16:56 +0000 (+0900) Subject: sd-device-monitor: fix inversed condition X-Git-Tag: v252-rc1~465^2~1 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=133d78966fe8b1469e593bd467d9055f7afa5858;p=systemd%2F.git sd-device-monitor: fix inversed condition Fixes an issue introduced by b3d06b9226db96fddb6bb45a4708e2e8d413d91d. --- diff --git a/src/libsystemd/sd-device/device-monitor.c b/src/libsystemd/sd-device/device-monitor.c index 459dbdf4e4..47a5d85886 100644 --- a/src/libsystemd/sd-device/device-monitor.c +++ b/src/libsystemd/sd-device/device-monitor.c @@ -446,7 +446,7 @@ int device_monitor_receive_device(sd_device_monitor *m, sd_device **ret) { buflen = recvmsg(m->sock, &smsg, 0); if (buflen < 0) { - if (ERRNO_IS_TRANSIENT(errno)) + if (!ERRNO_IS_TRANSIENT(errno)) log_debug_errno(errno, "sd-device-monitor: Failed to receive message: %m"); return -errno; }