]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device-monitor: fix inversed condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Aug 2022 19:16:56 +0000 (04:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Aug 2022 19:34:19 +0000 (04:34 +0900)
Fixes an issue introduced by b3d06b9226db96fddb6bb45a4708e2e8d413d91d.

src/libsystemd/sd-device/device-monitor.c

index 459dbdf4e49eb2263aae83956f5b7dbe82bad235..47a5d85886af36042e3069c378626a7ee1e26c2b 100644 (file)
@@ -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;
         }