platform: log result also for EEXIST in sysctl_set()
This commit is contained in:
@@ -3026,10 +3026,12 @@ sysctl_set (NMPlatform *platform, const char *pathid, int dirfd, const char *pat
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nwrote == -1 && errsv != EEXIST) {
|
if (nwrote == -1) {
|
||||||
NMLogLevel level = LOGL_ERR;
|
NMLogLevel level = LOGL_ERR;
|
||||||
|
|
||||||
if ( errsv == EINVAL
|
if (errsv == EEXIST) {
|
||||||
|
level = LOGL_DEBUG;
|
||||||
|
} else if ( errsv == EINVAL
|
||||||
&& nm_utils_sysctl_ip_conf_is_path (AF_INET6, path, NULL, "mtu")) {
|
&& nm_utils_sysctl_ip_conf_is_path (AF_INET6, path, NULL, "mtu")) {
|
||||||
/* setting the MTU can fail under regular conditions. Suppress
|
/* setting the MTU can fail under regular conditions. Suppress
|
||||||
* logging a warning. */
|
* logging a warning. */
|
||||||
|
Reference in New Issue
Block a user