]> granicus.if.org Git - procps-ng/commit
sysctl: Correct stat on /etc/sysctl.conf
authorVictor Ananjevsky <ananasik@gmail.com>
Fri, 26 Jun 2015 13:03:11 +0000 (23:03 +1000)
committerCraig Small <csmall@enc.com.au>
Fri, 26 Jun 2015 13:03:11 +0000 (23:03 +1000)
commit2617d03a33a2e68a6ee6fed2278fcac6a3fb59b4
tree955846426b96a857d27f968c907ab2403367fce7
parent6a0850be7b1a21b2b5529ef05bb9705998640802
sysctl: Correct stat on /etc/sysctl.conf

sysctl --system fails when the file /etc/sysctl.conf doesn't
exists. This happens due to wrong check of stat(2) return code.

Reference:
  https://www.freelists.org/post/procps/sysctl

Signed-off-by: Craig Small <csmall@enc.com.au>
sysctl.c