chiark / gitweb /
Fix a few return codes in error paths
[elogind.git] / src / network / networkd-network.c
index 47fab4e..bdf71e8 100644 (file)
@@ -41,7 +41,7 @@ static int network_load_one(Manager *manager, const char *filename) {
                 if (errno == ENOENT)
                         return 0;
                 else
-                        return errno;
+                        return -errno;
         }
 
         network = new0(Network, 1);