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 8af3db9274
commit c22fc57276

View File

@ -235,6 +235,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;
@ -284,6 +287,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;