chiark / gitweb /
[PATCH] got "remove of named devices" working.
[elogind.git] / udev-remove.c
index 29063efb0de0c8c0ac5ffbc2322a178a7e8cadcc..9862a6f201baf757cfb91b345dcde8dfef2383f8 100644 (file)
@@ -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;