aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-10-29 22:34:02 +0100
committerMattias Andrée <maandree@operamail.com>2014-10-29 22:34:02 +0100
commite6d4d57a3c6285ce2e1bdf7b26947b39af305c43 (patch)
treec0ec85222af6d2f457d10649932c0c068cfb20fc
parentstdin is closed, use stderr for ttyname (diff)
downloadcerberus-logging-e6d4d57a3c6285ce2e1bdf7b26947b39af305c43.tar.gz
cerberus-logging-e6d4d57a3c6285ce2e1bdf7b26947b39af305c43.tar.bz2
cerberus-logging-e6d4d57a3c6285ce2e1bdf7b26947b39af305c43.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-xsrc/logging2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging b/src/logging
index 8e8e14b..c1ca78e 100755
--- a/src/logging
+++ b/src/logging
@@ -84,7 +84,7 @@ log_login ()
# you add a script named .prelogin in your home directory that
# contains the following code, to print the last login information:
# echo 'Last login:' ; lastlog --user $USER | tail -n 1
- script="$(getent passwd | grep '^${user}:' | cut -d : -f 6)/.prelogin"
+ script="$(getent passwd | grep "^${user}:" | cut -d : -f 6)/.prelogin"
if [ -x "${script}" ]; then
su -c "${script}" -- "${user}"
fi