]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
fix path to utmp
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Oct 2015 09:07:08 +0000 (12:07 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Oct 2015 09:07:08 +0000 (12:07 +0300)
shell/bash_profile

index fbb3e7a15fafbb350baf5769afd896ad2104c71d..b7a35058981b1fecf374d90ca92bcab06ce85acb 100644 (file)
@@ -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
This page took 0.153939 seconds and 4 git commands to generate.