Merge "secure_path in sudoers: deal with possible quotes"

This commit is contained in:
Jenkins 2016-08-11 00:21:14 +00:00 committed by Gerrit Code Review
commit cf2030c2f6

View File

@ -6,5 +6,5 @@ fi
set -eu
set -o pipefail
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers
sed -i -e "/secure_path/ s@\([\'\"]\?\)\$@:/usr/local/bin/\1@" /etc/sudoers
visudo -c