mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
[PATCH] udevstart: close open directories.
Based on a munged patch from Olaf Hering <olh@suse.de>
This commit is contained in:
parent
aef6bb132e
commit
e13fa59953
@ -130,10 +130,13 @@ static void udev_scan(void)
|
||||
udev_exec(filename, "block");
|
||||
}
|
||||
}
|
||||
closedir(dir3);
|
||||
}
|
||||
}
|
||||
closedir(dir2);
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
}
|
||||
|
||||
devpath = "class";
|
||||
@ -176,10 +179,13 @@ static void udev_scan(void)
|
||||
udev_exec(filename, dent->d_name);
|
||||
}
|
||||
}
|
||||
closedir(dir3);
|
||||
}
|
||||
}
|
||||
closedir(dir2);
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user