From 68ab3e137b2ed017ca5d210dedfff702e21b25cf Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 30 Apr 2007 21:48:30 +0200 Subject: [PATCH] don't create $tempnode for devices without major --- udev_rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev_rules.c b/udev_rules.c index 61b39b45..5c3d7d5d 100644 --- a/udev_rules.c +++ b/udev_rules.c @@ -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)); -- 2.39.5