Просмотр исходного кода

dnsmasq: fix ismounted check

Fix the return value, shell return codes should be 0 to indicate success
(i.e. mount point found), 1 should be failure (i.e. mount point not-found).

Fixes: ac4e8aa ("dnsmasq: fix more dnsmasq jail issues")
Signed-off-by: Oldřich Jedlička <[email protected]>
Oldřich Jedlička 4 лет назад
Родитель
Сommit
1818157daa
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      package/network/services/dnsmasq/files/dnsmasq.init

+ 2 - 2
package/network/services/dnsmasq/files/dnsmasq.init

@@ -197,12 +197,12 @@ ismounted() {
 	for dirname in $EXTRA_MOUNT ; do
 		case "$filename" in
 			"${dirname}/"* | "${dirname}" )
-				return 1
+				return 0
 				;;
 		esac
 	done
 
-	return 0
+	return 1
 }
 
 append_addnhosts() {