From c22fc5727664a4ff600e670728fc625847580466 Mon Sep 17 00:00:00 2001 From: Werner Fink Date: Fri, 7 Jul 2017 14:09:12 +0200 Subject: [PATCH] Avoid confusing messages caused by EIO on reading /proc/sys/net/ipv6/conf/*/stable_secret if those are not set yet. Signed-off-by: Werner Fink --- sysctl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysctl.c b/sysctl.c index cb45ed81..f8408d5e 100644 --- a/sysctl.c +++ b/sysctl.c @@ -235,6 +235,9 @@ static int ReadSetting(const char *restrict const name) xwarnx(_("permission denied on key '%s'"), outname); rc = -1; break; + case EIO: /* Ignore stable_secret below /proc/sys/net/ipv6/conf */ + rc = -1; + break; default: xwarn(_("reading key \"%s\""), outname); rc = -1; @@ -284,6 +287,9 @@ static int ReadSetting(const char *restrict const name) rc = DisplayAll(tmpname); goto out; } + case EIO: /* Ignore stable_secret below /proc/sys/net/ipv6/conf */ + rc = -1; + break; default: xwarnx(_("reading key \"%s\""), outname); rc = -1;