summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-18 21:57:49 +0200
committerTom Gundersen <teg@jklm.no>2014-09-18 21:57:49 +0200
commit25773e7fc59b4ce53d67da4e18bfe4d13ab0b14b (patch)
treefc38686819ad0387e0f29a5c4048cfa82a49665b
parent65fea570f03df51dadc06a3e0d261a71fe62aa01 (diff)
udevd: don't fail if /run/udev exists
-rw-r--r--src/udev/udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 37db81c8bb..29ccb518e6 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;
}