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/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8da425a2d37c5e3125adff3c53cd5d418b2be9aa;p=ipfire-3.x.git network: Check if hook executeable before returning it. --- diff --git a/pkgs/core/network/src/functions b/pkgs/core/network/src/functions index 773463a87..9f1a19a94 100644 --- a/pkgs/core/network/src/functions +++ b/pkgs/core/network/src/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