Linux kernel creates USB devices with nodes like bus/usb/002/007
---
 smdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smdev.c b/smdev.c
index b774908..b9321df 100644
--- a/smdev.c
+++ b/smdev.c
@@ -185,7 +185,7 @@ parsepath(struct rule *rule, struct rulepath *rpath,
        if (!rule->path) {
                strlcpy(rpath->name, basedevname, sizeof(rpath->name));
                snprintf(rpath->path, sizeof(rpath->path), "/dev/%s",
-                        rpath->name);
+                        devname);
                return;
        }
 
-- 
2.31.1


Reply via email to