summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);