Commit 486d01c
linux: search for commands in /bin, /sbin too
Be compatible with distros that don't implement usr merge. If /bin and
/sbin are symlinks to /usr/[s]bin, this could list the same directory
contents again, so refactor the commands variable into a set instead of
an array.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>1 parent 27ebbe4 commit 486d01c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | | - | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
0 commit comments