Ticket #64717: sshuttle-sudoers.patch

File sshuttle-sudoers.patch, 569 bytes (added by Steuard (Steuard Jensen), 2 years ago)

Short patch to use Mac /private/etc path

  • sudoers-add

    old new  
    5252
    5353# Verify that the resulting file name begins with /etc/sudoers.d
    5454FILE_NAME="$(realpath "/etc/sudoers.d/$FILE_NAME")"
    55 if [[ "$FILE_NAME" != "/etc/sudoers.d/"* ]] ; then
     55if [[ "$FILE_NAME" != "/private/etc/sudoers.d/"* ]] ; then
    5656        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"
    5858        exit 1
    5959fi
    6060