]> err.no Git - systemd/commitdiff
don't create $tempnode for devices without major
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 30 Apr 2007 19:48:30 +0000 (21:48 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 30 Apr 2007 19:48:30 +0000 (21:48 +0200)
udev_rules.c

index 61b39b45c80514b338b8113024d6c76f2af1b8dd..5c3d7d5d0646a81d98507a5124d5efde603cf5dd 100644 (file)
@@ -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));