URI:
       tfix sudo execution (patch by robertmx in #223) - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 844a886da1e0a78f48a219907bad89c69c860f73
   DIR parent 7e88c5d07b24a54e8da44dbddcdd95402c95f3ba
  HTML Author: Jaromil <jaromil@dyne.org>
       Date:   Fri, 18 Nov 2016 19:00:47 +0100
       
       fix sudo execution (patch by robertmx in #223)
       
       ttested also in #228, this stops overwriting the $USERNAME
       variable which is not really useful (it was used in the previous
       privilege escalation model)
       
       Diffstat:
         M tomb                                |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/tomb b/tomb
       t@@ -210,10 +210,10 @@ _whoami() {
            _verbose "Identified caller: ::1 username:: (::2 UID:::::3  GID::)" $_USER $_UID $_GID
        
            # Update USERNAME accordingly if possible
       -    [[ $EUID == 0 && $_USER != $USERNAME ]] && {
       -        _verbose "Updating USERNAME from '::1 USERNAME::' to '::2 _USER::')" $USERNAME $_USER
       -        USERNAME=$_USER
       -    }
       +    # [[ $EUID == 0 && $_USER != $USERNAME ]] && {
       +    #     _verbose "Updating USERNAME from '::1 USERNAME::' to '::2 _USER::')" $USERNAME $_USER
       +    #     USERNAME=$_USER
       +    # }
        
            # Force HOME to _USER's HOME if necessary
            local home=$(awk -F: "/^$_USER:/ { print \$6 }" /etc/passwd 2>/dev/null)