commit e1e042c3ce7e4adc92082a1ccf3330345518163b
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Oct 6 12:07:08 2015 +0300

    fix path to utmp

 shell/bash_profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shell/bash_profile b/shell/bash_profile
index fbb3e7a..b7a3505 100644
--- a/shell/bash_profile
+++ b/shell/bash_profile
@@ -13,7 +13,7 @@ esac
 # identify via terminal last login (su, sudo)
 if [ -z "$FTPADM" ]; then
        LAST_TTY=$(tty)
-       LAST_LOGIN=$(last -if /var/run/utmpx | awk -vtty="${LAST_TTY#/dev/}" 
'$2 == tty && $0 ~ /still logged in/ { print $1; exit; }')
+       LAST_LOGIN=$(last -if /var/run/utmp | awk -vtty="${LAST_TTY#/dev/}" '$2 
== tty && $0 ~ /still logged in/ { print $1; exit; }')
        export FTPADM=$LAST_LOGIN
        unset LAST_TTY LAST_LOGIN
 fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/e1e042c3ce7e4adc92082a1ccf3330345518163b

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to