chiark / gitweb /
store devpath with the usual leading slash
[elogind.git] / udev_device.c
index 1eebd61cc56fc56c7c3c6dbeede8edc7b274f3e2..91fa6554805d6504c6a6060e9d3cd5cbe5b6b158 100644 (file)
@@ -208,6 +208,10 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
                        info("device event will be ignored");
                        goto exit;
                }
+               if (udev->name[0] == '\0') {
+                       info("device renaming supressed");
+                       goto exit;
+               }
 
                /* look if we want to change the name of the netif */
                if (strcmp(udev->name, udev->dev->kernel) != 0) {