[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] sysctl: ignore EIO of stable_secret below /proc/sys/net/ipv6/conf
From: Yi Zhao <yi.zhao () windriver ! com>
Date: 2020-03-06 8:28:49
Message-ID: 20200306082849.3432-1-yi.zhao () windriver ! com
[Download RAW message or body]
Avoid confusing messages caused by EIO on reading
/proc/sys/net/ipv6/conf/*/stable_secret if those are not set yet.
This is the same behaviour as in procps(>=3.3.13).
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
procps/sysctl.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/procps/sysctl.c b/procps/sysctl.c
index 6d77185ca..42c51cc91 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -202,7 +202,14 @@ static int sysctl_act_on_setting(char *setting)
value = cptr = xmalloc_read(fd, NULL);
close(fd);
if (value == NULL) {
- bb_perror_msg("error reading key '%s'", outname);
+ switch (errno) {
+ case EIO:
+ /* Ignore stable_secret below /proc/sys/net/ipv6/conf */
+ break;
+ default:
+ bb_perror_msg("error reading key '%s'", outname);
+ break;
+ }
retval = EXIT_FAILURE;
goto end;
}
--
2.17.1
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic