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); xwarnx(_("permission denied on key '%s'"), outname);
rc = -1; rc = -1;
break; break;
case EIO: /* Ignore stable_secret below /proc/sys/net/ipv6/conf */
rc = -1;
break;
default: default:
xwarn(_("reading key \"%s\""), outname); xwarn(_("reading key \"%s\""), outname);
rc = -1; rc = -1;
@ -286,6 +289,9 @@ static int ReadSetting(const char *restrict const name)
rc = DisplayAll(tmpname); rc = DisplayAll(tmpname);
goto out; goto out;
} }
case EIO: /* Ignore stable_secret below /proc/sys/net/ipv6/conf */
rc = -1;
break;
default: default:
xwarnx(_("reading key \"%s\""), outname); xwarnx(_("reading key \"%s\""), outname);
rc = -1; rc = -1;