]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: Check if hook executeable before returning it.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 May 2010 21:11:08 +0000 (23:11 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 May 2010 21:11:08 +0000 (23:11 +0200)
functions

index 773463a87d061023e8ec1fb2f84b195cb1fdd25d..9f1a19a9460572b4af0112834d7da85050e1bb47 100644 (file)
--- a/functions
+++ b/functions
@@ -461,6 +461,8 @@ function hook_list() {
        local type=${1}
        local hook
        for hook in ${HOOKS_DIR}/*; do
+               [ -x "${hook}" ] || continue
+
                hook=${hook##*/}
                
                [[ ${hook} =~ helper$ ]] && continue