Commit 7f6efed9 authored by Craig Small's avatar Craig Small

sysctl --system loads default config file

Commit cdca71e9 fixed the loading the sysctl.conf file, but had the logic for checking the file exists reversed incorrectly.
parent 14ef47af
procps-ng-3.3.10
----------------
* sysctl --system loads default config file - Debian #732920
procps-ng-3.3.9
---------------
* kernel namespaces support added to skill, pgrep, ps and top
......
......@@ -640,7 +640,7 @@ static int PreloadSystem(void)
}
if (stat(DEFAULT_PRELOAD, &ts) < 0 && S_ISREG(ts.st_mode)) {
if (stat(DEFAULT_PRELOAD, &ts) < 0 || S_ISREG(ts.st_mode)) {
if (!Quiet)
printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD);
rc |= Preload(DEFAULT_PRELOAD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment