summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-18 23:03:42 +0100
committerLennart Poettering <lennart@poettering.net>2010-11-18 23:03:42 +0100
commit24a3597372849741193570d70bf0deff3ab1ef99 (patch)
treed46fda935ba7cc4718860fa33d9afc9207626e5d /src
parent8e1bd70d4ce6d3881c1df6a6482643a2b3a69bb1 (diff)
sysctl: don't consider missing kernel options fatal
Diffstat (limited to 'src')
-rw-r--r--src/sysctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysctl.c b/src/sysctl.c
index c57210e28d..6b0e9aa3ba 100644
--- a/src/sysctl.c
+++ b/src/sysctl.c
@@ -54,7 +54,9 @@ static void apply_sysctl(const char *property, const char *value) {
if ((r = write_one_line_file(p, value)) < 0) {
log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r));
- exit_code = r;
+
+ if (r != -ENOENT)
+ exit_code = r;
}
free(p);