sysctl --system loads default config file
Commit cdca71e945
fixed
the loading the sysctl.conf file, but had the logic
for checking the file exists reversed incorrectly.
This commit is contained in:
parent
14ef47af57
commit
7f6efed9bb
4
NEWS
4
NEWS
@ -1,3 +1,7 @@
|
|||||||
|
procps-ng-3.3.10
|
||||||
|
----------------
|
||||||
|
* sysctl --system loads default config file - Debian #732920
|
||||||
|
|
||||||
procps-ng-3.3.9
|
procps-ng-3.3.9
|
||||||
---------------
|
---------------
|
||||||
* kernel namespaces support added to skill, pgrep, ps and top
|
* kernel namespaces support added to skill, pgrep, ps and top
|
||||||
|
2
sysctl.c
2
sysctl.c
@ -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)
|
if (!Quiet)
|
||||||
printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD);
|
printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD);
|
||||||
rc |= Preload(DEFAULT_PRELOAD);
|
rc |= Preload(DEFAULT_PRELOAD);
|
||||||
|
Loading…
Reference in New Issue
Block a user