summarylogtreecommitdiffstats
path: root/usb_nodes.patch
diff options
context:
space:
mode:
authorPlaton Ryzhikov2021-06-03 12:27:27 +0300
committerPlaton Ryzhikov2021-06-03 12:28:53 +0300
commite88d1cddec9d9d18611fad277ef55aa6661c5bdc (patch)
treed53ffbb16317b2d24bf5e9f5608c9d5ad6846b02 /usb_nodes.patch
parent702f94d5e05c9336574275f36e492183bfb71961 (diff)
downloadaur-e88d1cddec9d9d18611fad277ef55aa6661c5bdc.tar.gz
handle usb nodes correctly
Diffstat (limited to 'usb_nodes.patch')
-rw-r--r--usb_nodes.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/usb_nodes.patch b/usb_nodes.patch
new file mode 100644
index 000000000000..9aa89f36cfde
--- /dev/null
+++ b/usb_nodes.patch
@@ -0,0 +1,26 @@
+From 4c7b9620a746c35bb943cc40b27d729e714884d1 Mon Sep 17 00:00:00 2001
+From: Platon Ryzhikov <ihummer63@yandex.ru>
+Date: Thu, 3 Jun 2021 10:26:35 +0300
+Subject: [PATCH] Create USB nodes correctly
+
+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
+