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:
parent
8af3db9274
commit
c22fc57276
6
sysctl.c
6
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user