mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-26 05:48:08 +00:00
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:
parent
50bc06e774
commit
1818157daa
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user