summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-04-28 00:34:05 +0200
committerKay Sievers <kay.sievers@suse.de>2006-04-28 00:34:05 +0200
commit0e385feecc252b8803b5c4bf2dc501ab486d86f7 (patch)
tree13504c85c3efdeee6d3d21d43adaecd1bcdf2d1f /udevd.c
parent5fc32819ecb0c05fd8f67a2dfeff2454057982f8 (diff)
udevd: create leading directories for /dev/.udev/uevent_seqnum
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index eb1080b190..705e2a9780 100644
--- a/udevd.c
+++ b/udevd.c
@@ -841,6 +841,7 @@ static void export_initial_seqnum(void)
}
strlcpy(filename, udev_root, sizeof(filename));
strlcat(filename, "/" EVENT_SEQNUM, sizeof(filename));
+ create_path(filename);
fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0644);
if (fd >= 0) {
write(fd, seqnum, len);