summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-10-12 11:03:01 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-10-12 11:03:01 -0700
commit46646524a74c1834de103a2f469142ab50f6bfd6 (patch)
tree67cac2a69ef6873be52d5e1d2ff171eaa0ee7b99
parenta594e318996d0e8c02018eef1837135b382076c5 (diff)
Document -L option for lastlog files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--filenames.sed.c5
-rw-r--r--sessreg.c1
-rw-r--r--sessreg.man8
3 files changed, 13 insertions, 1 deletions
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 <wtmp-file> ] [ -u <utmp-file> ]
* [ -l <line> ]
+ * [ -L <lastlog-file> ] / #ifndef NO_LASTLOG
* [ -h <host-name> ] / BSD only
* [ -s <slot-number> ] [ -x Xservers-file ] / BSD only
* [ -t <ttys-file> ] / 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