chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
store devpath with the usual leading slash
[elogind.git]
/
udev_device.c
diff --git
a/udev_device.c
b/udev_device.c
index 1eebd61cc56fc56c7c3c6dbeede8edc7b274f3e2..91fa6554805d6504c6a6060e9d3cd5cbe5b6b158 100644
(file)
--- a/
udev_device.c
+++ b/
udev_device.c
@@
-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) {