dnsmasq: fix ismounted check (#8300)

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>

Co-authored-by: Oldřich Jedlička <oldium.pro@gmail.com>
This commit is contained in:
Beginner 2021-11-24 14:37:04 +08:00 committed by GitHub
parent 3b9dc892cb
commit 238eb30fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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