diff options
Diffstat (limited to 'procps/sysctl.c')
-rw-r--r-- | procps/sysctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/sysctl.c b/procps/sysctl.c index b5a01894f..7c72ac933 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -202,7 +202,8 @@ int sysctl_write_setting(const char *setting, int output) | |||
202 | while ((cptr = strchr(outname, '/')) != NULL) | 202 | while ((cptr = strchr(outname, '/')) != NULL) |
203 | *cptr = '.'; | 203 | *cptr = '.'; |
204 | 204 | ||
205 | if ((fd = open(tmpname, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) { | 205 | fd = open(tmpname, O_WRONLY | O_CREAT | O_TRUNC, 0666); |
206 | if (fd < 0) { | ||
206 | switch (errno) { | 207 | switch (errno) { |
207 | case ENOENT: | 208 | case ENOENT: |
208 | bb_error_msg(ERR_INVALID_KEY, outname); | 209 | bb_error_msg(ERR_INVALID_KEY, outname); |