From: Michael Tremer Date: Tue, 4 May 2010 21:11:08 +0000 (+0200) Subject: network: Check if hook executeable before returning it. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05d5b355324ddf33e175803e703109d8b8d8016c;p=people%2Farne_f%2Fnetwork.git network: Check if hook executeable before returning it. --- diff --git a/functions b/functions index 773463a8..9f1a19a9 100644 --- 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