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:
Craig Small
2013-12-27 23:08:14 +11:00
parent 14ef47af57
commit 7f6efed9bb
2 changed files with 5 additions and 1 deletions

View File

@ -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);