[systemd-commits] src/udev

Tom Gundersen tomegun at kemper.freedesktop.org
Thu Sep 18 12:58:29 PDT 2014


 src/udev/udevd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25773e7fc59b4ce53d67da4e18bfe4d13ab0b14b
Author: Tom Gundersen <teg at jklm.no>
Date:   Thu Sep 18 21:57:49 2014 +0200

    udevd: don't fail if /run/udev exists

diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 37db81c..29ccb51 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1155,7 +1155,7 @@ int main(int argc, char *argv[]) {
         umask(022);
 
         r = mkdir("/run/udev", 0755);
-        if (r < 0) {
+        if (r < 0 && errno != EEXIST) {
                 log_error("could not create /run/udev: %m");
                 goto exit;
         }



More information about the systemd-commits mailing list