Ticket #64717: sshuttle-sudoers.patch
File sshuttle-sudoers.patch, 569 bytes (added by Steuard (Steuard Jensen), 3 years ago) |
---|
-
sudoers-add
old new 52 52 53 53 # Verify that the resulting file name begins with /etc/sudoers.d 54 54 FILE_NAME="$(realpath "/etc/sudoers.d/$FILE_NAME")" 55 if [[ "$FILE_NAME" != "/ etc/sudoers.d/"* ]] ; then55 if [[ "$FILE_NAME" != "/private/etc/sudoers.d/"* ]] ; then 56 56 echo -n "Invalid sudoers filename: Final sudoers file " 57 echo "location ($FILE_NAME) does not begin with / etc/sudoers.d"57 echo "location ($FILE_NAME) does not begin with /private/etc/sudoers.d" 58 58 exit 1 59 59 fi 60 60