summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2012-10-25 16:16:19 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-10-26 01:12:22 +0200
commit91b32fa987a4a50faf3d8561b28b6c9d5150adef (patch)
treecafbe7ce0630629d49ab3a11d72431bae43972a8
parenta9f4815da56b8efc519595c3d8a78fe064fa8d69 (diff)
sysctl: parse all keys in a config file
https://bugzilla.redhat.com/show_bug.cgi?id=869779
-rw-r--r--src/sysctl/sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index a68d67fd4b..035e0ec321 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -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;
}
}