galeb

Једноставна статичка дистрибуција заснована на musl-у
git clone https://git.sr.ht/~strahinja/galeb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

usb_nodes.patch (692B)


      1 From 4c7b9620a746c35bb943cc40b27d729e714884d1 Mon Sep 17 00:00:00 2001
      2 From: Platon Ryzhikov <ihummer63@yandex.ru>
      3 Date: Thu, 3 Jun 2021 10:26:35 +0300
      4 Subject: [PATCH] Create USB nodes correctly
      5 
      6 Linux kernel creates USB devices with nodes like bus/usb/002/007
      7 ---
      8  smdev.c | 2 +-
      9  1 file changed, 1 insertion(+), 1 deletion(-)
     10 
     11 diff --git a/smdev.c b/smdev.c
     12 index b774908..b9321df 100644
     13 --- a/smdev.c
     14 +++ b/smdev.c
     15 @@ -185,7 +185,7 @@ parsepath(struct rule *rule, struct rulepath *rpath,
     16  	if (!rule->path) {
     17  		strlcpy(rpath->name, basedevname, sizeof(rpath->name));
     18  		snprintf(rpath->path, sizeof(rpath->path), "/dev/%s",
     19 -			 rpath->name);
     20 +			 devname);
     21  		return;
     22  	}
     23  
     24 -- 
     25 2.31.1
     26