From: Oldřich Jedlička Date: Sun, 7 Nov 2021 20:56:12 +0000 (+0100) Subject: dnsmasq: fix ismounted check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1818157daa538a97bb128d40750bfba6c98d3abe;p=openwrt%2Fstaging%2Frobimarko.git 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 --- 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() {