summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-09-01 21:14:54 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-09-01 21:14:54 +0200
commit4fd394c34b1950ba897ef9ce92b14d2fe2a8dba8 (patch)
treebbc7acd70ef35435346d2c23bba5d08e1c129418
parentc99b72121fb965920652ea5e7a1d7f962385626b (diff)
mknod: do not complain about existing node
-rw-r--r--udev/udev-node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-node.c b/udev/udev-node.c
index 71488c93ad..f19dc4d900 100644
--- a/udev/udev-node.c
+++ b/udev/udev-node.c
@@ -107,7 +107,7 @@ int udev_node_mknod(struct udev_device *dev, const char *file, mode_t mode, uid_
err = -errno;
udev_selinux_resetfscreatecon(udev);
} while (err == -ENOENT);
- if (err != 0)
+ if (err != 0 && err != -EEXIST)
err(udev, "mknod '%s' %u:%u %#o' failed: %m\n", file, major(devnum), minor(devnum), mode);
info(udev, "set permissions '%s' %#o uid=%u gid=%u\n", file, mode, uid, gid);
chmod(file, mode);