diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-08 10:17:28 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-07-09 23:08:10 +0200 |
commit | 65034359ee8c249a37dc1e2c23292907cdeb5a09 (patch) | |
tree | cc9a9cf36dcea2c65a9d902a94399b2b184eb6c6 /package/base-files | |
parent | 7f4510a251e318b0360daf745a6fa698a6824d63 (diff) | |
download | upstream-65034359ee8c249a37dc1e2c23292907cdeb5a09.tar.gz upstream-65034359ee8c249a37dc1e2c23292907cdeb5a09.tar.bz2 upstream-65034359ee8c249a37dc1e2c23292907cdeb5a09.zip |
base-files: Fix path check in get_mac_binary
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 <mschiffer@universe-factory.net>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 6ed3349308b24a6bac753643970a1f9f56ff6070)
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh index df671465be..9b9d03df7b 100644 --- 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 |