diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-09-01 21:14:54 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-09-01 21:14:54 +0200 |
commit | 4fd394c34b1950ba897ef9ce92b14d2fe2a8dba8 (patch) | |
tree | bbc7acd70ef35435346d2c23bba5d08e1c129418 | |
parent | c99b72121fb965920652ea5e7a1d7f962385626b (diff) |
mknod: do not complain about existing node
-rw-r--r-- | udev/udev-node.c | 2 |
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); |