mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
src/udev/udevd.c: rename apis in static_dev_create_from_modules() also
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
596470312a
commit
538bf2441f
@ -965,11 +965,11 @@ static void static_dev_create_from_modules(struct udev *udev) {
|
||||
|
||||
strscpyl(filename, sizeof(filename), "/dev/", devname, NULL);
|
||||
mkdir_parents_label(filename, 0755);
|
||||
label_context_set(filename, mode);
|
||||
mac_selinux_context_set(filename, mode);
|
||||
log_debug("mknod '%s' %c%u:%u\n", filename, type, maj, min);
|
||||
if (mknod(filename, mode, makedev(maj, min)) < 0 && errno == EEXIST)
|
||||
utimensat(AT_FDCWD, filename, NULL, 0);
|
||||
label_context_clear();
|
||||
mac_selinux_context_clear();
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
|
Loading…
Reference in New Issue
Block a user