aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorOldřich Jedlička <oldium.pro@gmail.com>2021-11-07 21:56:12 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-11-23 14:57:52 +0000
commit1818157daa538a97bb128d40750bfba6c98d3abe (patch)
tree343e51e0fdbb5fa24d7bcc7a22bc615d5ebb3e56 /package/network
parent50bc06e774f89517f98c89c76a7626f35c3ff659 (diff)
downloadupstream-1818157daa538a97bb128d40750bfba6c98d3abe.tar.gz
upstream-1818157daa538a97bb128d40750bfba6c98d3abe.tar.bz2
upstream-1818157daa538a97bb128d40750bfba6c98d3abe.zip
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>
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/services/dnsmasq/files/dnsmasq.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 1e53f8f2c1..09dce0a78d 100755
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/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() {