summaryrefslogtreecommitdiff
path: root/localshowuserfromip
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-11-14 13:26:38 +0000
committerJonas Smedegaard <dr@jones.dk>2007-11-14 13:26:38 +0000
commita8aad353122a8f1f7eac3e3d419ac7fa01e94d7b (patch)
tree0fe3f4b43c1a7275b0bc27c684e8c0d7e58db695 /localshowuserfromip
parent0f8d8c542fba2202842ddc25d3b50df72f365738 (diff)
Add space before username in shorline output.
Diffstat (limited to 'localshowuserfromip')
-rwxr-xr-xlocalshowuserfromip4
1 files changed, 2 insertions, 2 deletions
diff --git a/localshowuserfromip b/localshowuserfromip
index 48398e2..f64d673 100755
--- a/localshowuserfromip
+++ b/localshowuserfromip
@@ -3,7 +3,7 @@
# /usr/local/sbin/localshowuserfromip
# Copyright 2007 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localshowuserfromip,v 1.1 2007-11-14 13:23:55 jonas Exp $
+# $Id: localshowuserfromip,v 1.2 2007-11-14 13:26:38 jonas Exp $
#
# List recent identifiable users from some IP address
#
@@ -21,7 +21,7 @@ case $pattern in
# Dovecot "deliver"
egrep_before=', rip=('
egrep_after='), lip='
- sed_shortline='s/^\(.\{15\}\) [^:]*: [^-]*-login: Login: user=</\1/;s/>, method=[^,]*, rip=/ /;s/, lip=.*$//'
+ sed_shortline='s/^\(.\{15\}\) [^:]*: [^-]*-login: Login: user=</\1 /;s/>, method=[^,]*, rip=/ /;s/, lip=.*$//'
sed_username='s/^.* user=<//;s/>, .*$//'
;;
*)