diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-18 23:03:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-18 23:03:42 +0100 |
commit | 24a3597372849741193570d70bf0deff3ab1ef99 (patch) | |
tree | d46fda935ba7cc4718860fa33d9afc9207626e5d | |
parent | sysctl: implement native sysctl tool to support Debian-style /etc/sysctl.d (diff) | |
download | eudev-24a3597372849741193570d70bf0deff3ab1ef99.tar.gz eudev-24a3597372849741193570d70bf0deff3ab1ef99.tar.bz2 eudev-24a3597372849741193570d70bf0deff3ab1ef99.zip |
sysctl: don't consider missing kernel options fatal
-rw-r--r-- | src/sysctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysctl.c b/src/sysctl.c index c57210e28..6b0e9aa3b 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); |