[projects/pld-ftp-admin] fix path to utmp
glen
glen at pld-linux.org
Tue Oct 6 11:07:14 CEST 2015
commit e1e042c3ce7e4adc92082a1ccf3330345518163b
Author: Elan Ruusamäe <glen at pld-linux.org>
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
More information about the pld-cvs-commit
mailing list