projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
687977b
)
base-files: Fix path check in get_mac_binary
author
Adrian Schmutzler
<
[email protected]
>
Mon, 8 Jul 2019 08:17:28 +0000
(10:17 +0200)
committer
Petr Štetiar
<
[email protected]
>
Tue, 9 Jul 2019 21:08:57 +0000
(23:08 +0200)
Logic was inverted when changing from string check to file check.
Fix it.
Fixes: 8592602d0a88 ("base-files: Really check path in get_mac_binary")
Reported-by: Matthias Schiffer <
[email protected]
>
Signed-off-by: Adrian Schmutzler <
[email protected]
>
(cherry picked from commit
6ed3349308b24a6bac753643970a1f9f56ff6070
)
package/base-files/files/lib/functions/system.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/functions/system.sh
b/package/base-files/files/lib/functions/system.sh
index df671465beaf79cf8513d49923e4f6a749e05b52..9b9d03df7b06fb887b25e9c2895399e792705683 100644
(file)
--- a/
package/base-files/files/lib/functions/system.sh
+++ b/
package/base-files/files/lib/functions/system.sh
@@
-4,7
+4,7
@@
get_mac_binary() {
local path="$1"
local offset="$2"
- if [ -e "$path" ]; then
+ if
!
[ -e "$path" ]; then
echo "get_mac_binary: file $path not found!" >&2
return
fi