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
58ae084c27
commit
854e2c5528
6
sysctl.c
6
sysctl.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user