chiark / gitweb /
sysctl: parse all keys in a config file
[elogind.git] / src / sysctl / sysctl.c
index a68d67f..035e0ec 100644 (file)
@@ -178,7 +178,7 @@ static int parse_file(const char *path, bool ignore_enoent) {
 
                         free(property);
                         free(new_value);
-                        if (r != -EEXIST)
+                        if (r != 0)
                                 goto finish;
                 }
         }