summaryrefslogtreecommitdiffstats
path: root/libexec/plugins-hook
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-03 20:13:44 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-03 20:13:44 (GMT)
commit96307636e5f36a0fa77bb767a899dee1e97a00f8 (patch)
tree13849a561477767658bbca223712849fedb8cdb9 /libexec/plugins-hook
parentd912a8eee92e67c489f5882a8ce0169e79f3f71a (diff)
downloadsite-96307636e5f36a0fa77bb767a899dee1e97a00f8.tar.gz
plugins-hook: Fix non-issue
Fix a bug that will only be triggered if the output of whoami(1) is empty.
Diffstat (limited to 'libexec/plugins-hook')
-rwxr-xr-xlibexec/plugins-hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/plugins-hook b/libexec/plugins-hook
index bc2eddc..63299d0 100755
--- a/libexec/plugins-hook
+++ b/libexec/plugins-hook
@@ -16,7 +16,7 @@ run_as='plugins'
16 16
17set -u 17set -u
18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' 18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19test $(whoami) = "$run_as" || exec sudo -u "$run_as" "$0" "$@" 19test "$(whoami)" = "$run_as" || exec sudo -u "$run_as" "$0" "$@"
20 20
21hook_name=${0##*/} 21hook_name=${0##*/}
22hook_directory="/home/plugins/libexec/$hook_name.d" 22hook_directory="/home/plugins/libexec/$hook_name.d"