diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-11-12 14:58:19 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-11-12 14:58:53 +0900 |
commit | ffdc9c891f00f79aa7df3ac25ad141db74686fbe (patch) | |
tree | 76366fb1de67edaf4352fa26aa8647374ded43ed /src/udev/udev-rules.c | |
parent | 4b613ec212bfd06fd9d9487bd37b0791fa6dff9e (diff) | |
download | systemd-ffdc9c891f00f79aa7df3ac25ad141db74686fbe.tar.gz systemd-ffdc9c891f00f79aa7df3ac25ad141db74686fbe.tar.bz2 systemd-ffdc9c891f00f79aa7df3ac25ad141db74686fbe.zip |
udev: fix error code in the log message
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 92eb136e69..5dbf2e1576 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -2336,8 +2336,7 @@ static int apply_static_dev_perms(const char *devnode, uid_t uid, gid_t gid, mod if (r == -ENOENT) return 0; if (r < 0) - return log_error_errno(errno, "Failed to chown '%s' %u %u: %m", - device_node, uid, gid); + return log_error_errno(r, "Failed to chown '%s' %u %u: %m", device_node, uid, gid); else log_debug("chown '%s' %u:%u with mode %#o", device_node, uid, gid, mode); |