summaryrefslogtreecommitdiff
path: root/udev_rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-04-30 21:48:30 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-04-30 21:48:30 +0200
commit68ab3e137b2ed017ca5d210dedfff702e21b25cf (patch)
treef8be9f94bb91672aa4ff7e6dc302af8dab40d476 /udev_rules.c
parentcfdea0f647720222bb2fde67ab0a083167e9b2b4 (diff)
don't create $tempnode for devices without major
Diffstat (limited to 'udev_rules.c')
-rw-r--r--udev_rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_rules.c b/udev_rules.c
index 61b39b45c8..5c3d7d5d06 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));