anitazha / rpms / systemd

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