mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
don't create $tempnode for devices without major
This commit is contained in:
parent
cfdea0f647
commit
68ab3e137b
@ -532,7 +532,7 @@ found:
|
||||
}
|
||||
break;
|
||||
case SUBST_TEMP_NODE:
|
||||
if (udev->tmp_node[0] == '\0') {
|
||||
if (udev->tmp_node[0] == '\0' && major(udev->devt) > 0) {
|
||||
dbg("create temporary device node for callout");
|
||||
snprintf(udev->tmp_node, sizeof(udev->tmp_node), "%s/.tmp-%u-%u",
|
||||
udev_root, major(udev->devt), minor(udev->devt));
|
||||
|
Loading…
Reference in New Issue
Block a user