From: Kay Sievers Date: Thu, 1 Sep 2011 19:14:54 +0000 (+0200) Subject: mknod: do not complain about existing node X-Git-Tag: 174~26 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd394c34b1950ba897ef9ce92b14d2fe2a8dba8;p=systemd mknod: do not complain about existing node --- diff --git a/udev/udev-node.c b/udev/udev-node.c index 71488c93..f19dc4d9 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);