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 <oldium.pro@gmail.com>
This commit is contained in:
Oldřich Jedlička 2021-11-07 21:56:12 +01:00 committed by Daniel Golle
parent 50bc06e774
commit 1818157daa
1 changed files with 2 additions and 2 deletions

View File

@ -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() {