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:
Tom Gundersen 2014-09-18 09:20:46 +02:00
parent 76082570b8
commit 9dedfe7f66
1 changed files with 4 additions and 1 deletions

View File

@ -412,7 +412,10 @@ _public_ int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor)
}
/* 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;
}