summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-04-17 00:26:02 +0200
committerKay Sievers <kay@vrfy.org>2012-04-17 01:09:39 +0200
commit9e13dbae509605dba1bde7e7385086b59acb428e (patch)
treeab3b5cdbdcf358212727f2aa181186d4b5973832 /src/udev/udevd.c
parentf13b388f97bc3ba8db844bd3413d510e2466a0b6 (diff)
udev: replace util_create_path() with mkdir_parents()
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index d6de2aa222..513d1de343 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -857,7 +857,7 @@ static void static_dev_create_from_modules(struct udev *udev)
continue;
util_strscpyl(filename, sizeof(filename), "/dev/", devname, NULL);
- util_create_path_selinux(udev, filename);
+ mkdir_parents(filename, 0755);
udev_selinux_setfscreatecon(udev, filename, mode);
log_debug("mknod '%s' %c%u:%u\n", filename, type, maj, min);
if (mknod(filename, mode, makedev(maj, min)) < 0 && errno == EEXIST)
@@ -938,7 +938,7 @@ static int convert_db(struct udev *udev)
return 0;
/* make sure we do not get here again */
- util_create_path(udev, "/run/udev/data");
+ mkdir_parents("/run/udev/data", 0755);
mkdir(filename, 0755);
/* old database */