summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-18 21:57:49 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-09-18 18:59:59 -0400
commit4364e777ebe707a93d34bbe5fd05ecb38f69a54d (patch)
tree324469fd2626f54954233bdb0fcb8aa4b84d771e /src
parentd3715a4b2a06c0c568910afb608db8a788c48f37 (diff)
udevd: don't fail if /run/udev exists
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-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 4ed7b4f58e..0fbcb4faab 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1181,7 +1181,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;
}