base-files: Fix path check in get_mac_binary
Logic was inverted when changing from string check to file check.
Fix it.
Fixes: 8592602d0a ("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>
			
			
This commit is contained in:
		 Adrian Schmutzler
					Adrian Schmutzler
				
			
				
					committed by
					
						 Petr Štetiar
						Petr Štetiar
					
				
			
			
				
	
			
			
			 Petr Štetiar
						Petr Štetiar
					
				
			
						parent
						
							9ef53b93cb
						
					
				
				
					commit
					6ed3349308
				
			| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user