summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-07-02 03:09:18 +0200
committerKay Sievers <kay@vrfy.org>2012-07-02 03:09:18 +0200
commitddbe6850b2ae490ab359a050b190cf96e1559cd7 (patch)
tree1cdb25003c65edec2d2e16cec8ce6a69ff7eaa13 /src/udev/udevd.c
parentb80680eda9e615711414b7efa2d81e4ac1496b6a (diff)
udevd: fix bogus mkdir invocation
The filename parameter passed to mkdir can't contain anything but a garbage value at this point. This was meant to be the full pathname to the new udev DB, as the mkdir_parents() call before it won't create the trailing child directory. [replace mkdir_parents() + mkdir() with mkdir_p() -- kay]
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 1d6b23087b..a5478a754e 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -899,8 +899,7 @@ static int convert_db(struct udev *udev)
return 0;
/* make sure we do not get here again */
- mkdir_parents("/run/udev/data", 0755);
- mkdir(filename, 0755);
+ mkdir_p("/run/udev/data", 0755);
/* old database */
util_strscpyl(filename, sizeof(filename), "/dev/.udev/db", NULL);