sysctl: on EIO ("sysctl net.ipv6.conf.all.stable_secret") set nonzero exitcode
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 8 Feb 2019 13:59:06 +0000 (14:59 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 8 Feb 2019 13:59:06 +0000 (14:59 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/sysctl.c

index 2ef19c1be9deaececbfd79f1e389d112521f242e..94a3079012bc40f95320b3d7353e9b16f349a7ad 100644 (file)
@@ -177,6 +177,7 @@ static int sysctl_act_on_setting(char *setting)
                close(fd);
                if (value == NULL) {
                        bb_perror_msg("error reading key '%s'", outname);
+                       retval = EXIT_FAILURE;
                        goto end;
                }