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 <werner@suse.de>
This commit is contained in:
Werner Fink 2017-07-07 14:09:12 +02:00 committed by Craig Small
parent 58ae084c27
commit 854e2c5528

View File

@ -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;