udevd: create leading directories for /dev/.udev/uevent_seqnum

This commit is contained in:
Kay Sievers 2006-04-28 00:34:05 +02:00
parent 5fc32819ec
commit 0e385feecc

View File

@ -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);