summaryrefslogtreecommitdiff
path: root/udev-remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev-remove.c')
-rw-r--r--udev-remove.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev-remove.c b/udev-remove.c
index 29063efb0d..9862a6f201 100644
--- a/udev-remove.c
+++ b/udev-remove.c
@@ -45,6 +45,11 @@ static char *get_name(char *dev, int major, int minor)
static char name[100];
char *temp;
+ temp = udevdb_get_udevice_by_sysfs(dev);
+ dbg("udevdb_get_udevice_by_sysfs returned %s", temp);
+ if (temp != NULL)
+ return temp;
+
temp = strrchr(dev, '/');
if (temp == NULL)
return NULL;