Install subscribers without the execute bit.
[openresolv] / libc.in
diff --git a/libc.in b/libc.in
index 0037ef020d381af5d2595b643b09a7eb2fcc2069..4ed75a2eaebe2d313136c3a3e016e0da8f7d86d1 100644 (file)
--- a/libc.in
+++ b/libc.in
@@ -154,8 +154,12 @@ eval $libc_restart
 retval=0
 # Notify users of the resolver
 for script in "$LIBEXECDIR"/libc.d/*; do
-       if [ -f "$script" -a -x "$script" ]; then
-               "$script" "$@"
+       if [ -f "$script" ]; then
+               if [ -x "$script" ]; then
+                       "$script" "$@"
+               else
+                       (. "$script" "$@")
+               fi
                retval=$(($retval + $?))
        fi
 done