Hi, with this one, I am not totally sure whether it is necessary (as in: what exactly the parameters the function is called with could look like), but at least it shouldn't hurt. Untested etc. Florian diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c index 3baa5f9..54ea328 100644 --- a/libudev/libudev-util-private.c +++ b/libudev/libudev-util-private.c @@ -69,6 +69,7 @@ int util_delete_path(struct udev *udev, const char *path) char *pos; int retval; + if(*path=='/')while(path[1]=='/')path++; util_strscpy(p, sizeof(p), path); pos = strrchr(p, '/'); if (pos == p || pos == NULL) -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html