[systemd-commits] src/sysctl.c
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Nov 18 14:03:50 PST 2010
src/sysctl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 24a3597372849741193570d70bf0deff3ab1ef99
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 18 23:03:42 2010 +0100
sysctl: don't consider missing kernel options fatal
diff --git a/src/sysctl.c b/src/sysctl.c
index c57210e..6b0e9aa 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);
More information about the systemd-commits
mailing list