chiark / gitweb /
Fix a few return codes in error paths
[elogind.git] / src / network / networkd-netdev.c
index 762eff2..92548d9 100644 (file)
@@ -461,7 +461,7 @@ static int netdev_load_one(Manager *manager, const char *filename) {
                 if (errno == ENOENT)
                         return 0;
                 else
                 if (errno == ENOENT)
                         return 0;
                 else
-                        return errno;
+                        return -errno;
         }
 
         netdev = new0(NetDev, 1);
         }
 
         netdev = new0(NetDev, 1);