mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
udev: fix error code in the log message
This commit is contained in:
parent
4b613ec212
commit
ffdc9c891f
@ -2336,8 +2336,7 @@ static int apply_static_dev_perms(const char *devnode, uid_t uid, gid_t gid, mod
|
|||||||
if (r == -ENOENT)
|
if (r == -ENOENT)
|
||||||
return 0;
|
return 0;
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_error_errno(errno, "Failed to chown '%s' %u %u: %m",
|
return log_error_errno(r, "Failed to chown '%s' %u %u: %m", device_node, uid, gid);
|
||||||
device_node, uid, gid);
|
|
||||||
else
|
else
|
||||||
log_debug("chown '%s' %u:%u with mode %#o", device_node, uid, gid, mode);
|
log_debug("chown '%s' %u:%u with mode %#o", device_node, uid, gid, mode);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user