diff options
author | Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org> | 2012-11-18 10:49:47 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-11-18 10:14:19 -0500 |
commit | c189ab04cbaa2f011da0210f2c885e6f693f1d6c (patch) | |
tree | e013ea0467292d81b5318106985d3bfeec6a333f /src/udev/udev-node.c | |
parent | 2af83cafa0f410edc1d60029edfd457e121114a4 (diff) |
Fix unused result warnings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r-- | src/udev/udev-node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index 7774303704..df3fac8ab6 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -282,7 +282,8 @@ static int node_fixup(struct udev_device *dev, mode_t mode, uid_t uid, gid_t gid if ((stats.st_mode & 0777) != (mode & 0777) || stats.st_uid != uid || stats.st_gid != gid) { log_debug("set permissions %s, %#o, uid=%u, gid=%u\n", devnode, mode, uid, gid); chmod(devnode, mode); - chown(devnode, uid, gid); + if (chown(devnode, uid, gid) < 0) + log_debug("Failed to change ownership of %s to uid=%u, gid=%u\n", devnode, uid, gid); } else { log_debug("preserve permissions %s, %#o, uid=%u, gid=%u\n", devnode, mode, uid, gid); } |