From 854e2c5528e85420af253da51e8ec4703c679bb3 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 be057229..aadc2330 100644 --- a/sysctl.c +++ b/sysctl.c @@ -237,6 +237,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; @@ -286,6 +289,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; -- 2.40.0