From 4fd394c34b1950ba897ef9ce92b14d2fe2a8dba8 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 1 Sep 2011 21:14:54 +0200 Subject: mknod: do not complain about existing node --- udev/udev-node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf