From 46646524a74c1834de103a2f469142ab50f6bfd6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 12 Oct 2009 11:03:01 -0700 Subject: Document -L option for lastlog files Signed-off-by: Alan Coopersmith --- filenames.sed.c | 5 +++++ sessreg.c | 1 + sessreg.man | 8 +++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/filenames.sed.c b/filenames.sed.c index b3bd13e..2db7845 100644 --- a/filenames.sed.c +++ b/filenames.sed.c @@ -18,7 +18,12 @@ # define TTYS_FILE "/etc/ttys" #endif +#ifndef LLOG_FILE +# define LLOG_FILE "/var/log/lastlog" +#endif + s|__utmp_manpage__|UTM|g s|__utmp_file__|UTF|g s|__wtmp_file__|WTF|g s|__ttys_file__|TTYS_FILE|g +s|__lastlog_file__|LLOG_FILE|g diff --git a/sessreg.c b/sessreg.c index bdd82bf..fd685d5 100644 --- a/sessreg.c +++ b/sessreg.c @@ -66,6 +66,7 @@ * * usage: sessreg [ -w ] [ -u ] * [ -l ] + * [ -L ] / #ifndef NO_LASTLOG * [ -h ] / BSD only * [ -s ] [ -x Xservers-file ] / BSD only * [ -t ] / BSD only diff --git a/sessreg.man b/sessreg.man index 401a7f1..27675c9 100644 --- a/sessreg.man +++ b/sessreg.man @@ -32,6 +32,7 @@ sessreg \- manage utmp/wtmp entries for non-init clients .B sessreg [-w \fIwtmp-file\fP] [-u \fIutmp-file\fP] +[-L \fIlastlog-file\fP] [-l \fIline-name\fP] [-h \fIhost-name\fP] [-s \fIslot-number\fP] @@ -42,7 +43,7 @@ sessreg \- manage utmp/wtmp entries for non-init clients \fIuser-name\fP .SH DESCRIPTION .PP -\fISessreg\fP is a simple program for managing utmp/wtmp +\fISessreg\fP is a simple program for managing utmp/wtmp and lastlog entries for xdm sessions. .PP System V has a better interface to utmp than BSD; it @@ -93,6 +94,11 @@ The special name "none" disables writing records to the wtmp file. This specifies an alternate utmp file, instead of .BR __utmp_file__ . The special name "none" disables writing records to the utmp file. +.IP "\fB-L\fP \fIlastlog-file\fP" +This specifies an alternate lastlog file, instead of +.BR __lastlog_file__ , +if the platform supports lastlog files. +The special name "none" disables writing records to the lastlog file. .IP "\fB-l\fP \fIline-name\fP" This describes the "line" name of the entry. For terminal sessions, this is the final pathname segment of the terminal device filename -- cgit v1.2.3