ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
65878a
From 9944a5e77f0ad03742a1582cd51cc5ebbdd487ed Mon Sep 17 00:00:00 2001
65878a
From: Harald Hoyer <harald@redhat.com>
65878a
Date: Mon, 11 Nov 2013 11:17:57 +0100
65878a
Subject: [PATCH] sysctl: bring back /etc/sysctl.conf
65878a
65878a
Read /etc/sysctl.conf as the last file, overwriting everything.
65878a
---
65878a
 src/sysctl/sysctl.c | 4 ++++
65878a
 1 file changed, 4 insertions(+)
65878a
65878a
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
65878a
index b5670db..878c923 100644
65878a
--- a/src/sysctl/sysctl.c
65878a
+++ b/src/sysctl/sysctl.c
65878a
@@ -311,6 +311,10 @@ int main(int argc, char *argv[]) {
65878a
                         if (k < 0 && r == 0)
65878a
                                 r = k;
65878a
                 }
65878a
+
65878a
+                k = parse_file(sysctl_options, "/etc/sysctl.conf", true);
65878a
+                if (k < 0 && r == 0)
65878a
+                        r = k;
65878a
         }
65878a
 
65878a
         k = apply_all(sysctl_options);