libudev: monitor - warn if we fail to request SO_PASSCRED
The function still succeeds, so there is no functional change. This fixes CID #996288.
This commit is contained in:
parent
76082570b8
commit
9dedfe7f66
|
@ -412,7 +412,10 @@ _public_ int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enable receiving of sender credentials */
|
/* enable receiving of sender credentials */
|
||||||
setsockopt(udev_monitor->sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on));
|
err = setsockopt(udev_monitor->sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on));
|
||||||
|
if (err < 0)
|
||||||
|
udev_err(udev_monitor->udev, "setting SO_PASSCRED failed: %m\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue