chiark / gitweb /
udevd: create leading directories for /dev/.udev/uevent_seqnum
authorKay Sievers <kay.sievers@suse.de>
Thu, 27 Apr 2006 22:34:05 +0000 (00:34 +0200)
committerKay Sievers <kay.sievers@suse.de>
Thu, 27 Apr 2006 22:34:05 +0000 (00:34 +0200)
udevd.c

diff --git a/udevd.c b/udevd.c
index eb1080b..705e2a9 100644 (file)
--- 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);