[hackers] [smdev][PATCH] Create USB nodes correctly

From: Platon Ryzhikov <ihummer63_AT_yandex.ru>
Date: Thu, 3 Jun 2021 10:44:57 +0300

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
_AT_@ -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
Received on Thu Jun 03 2021 - 09:44:57 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 03 2021 - 09:48:31 CEST