chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] got "remove of named devices" working.
[elogind.git]
/
udev-remove.c
diff --git
a/udev-remove.c
b/udev-remove.c
index 29063efb0de0c8c0ac5ffbc2322a178a7e8cadcc..9862a6f201baf757cfb91b345dcde8dfef2383f8 100644
(file)
--- 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;