Install subscribers without the execute bit.
[openresolv] / resolvconf.in
index 432852d96c6ca70d681c133a80055f32f60fd715..77578615c4cefd2a471395a3ca6be71656227bf1 100644 (file)
@@ -394,8 +394,13 @@ eval "$(make_vars)"
 : ${list_resolv:=list_resolv -l}
 retval=0
 for script in "$LIBEXECDIR"/*; do
-       [ -f "$script" ] || continue
-       ( . "$script" "$cmd" "$iface" )
-       retval=$(($retval + $?))
-done
+       if [ -f "$script" ]; then
+               if [ -x "$script" ]; then
+                       "$script" "$cmd" "$iface"
+               else
+                       (. "$script" "$cmd" "$fiace")
+               fi
+               retval=$(($retval + $?))
+       fi
+    done
 exit $retval