[PATCH app-sessreg 3/4] man: location of utmp/wtmp/lastlog files should not be computed

Gaetan Nadon memsize at videotron.ca
Mon Mar 14 11:19:48 PDT 2011


As outlined in previous patches, the man page provides information
on how utmp works on System V and BSD, providing details on both,
and comparing them.

In addition, the sessreg command is designed to ignore, rather than fail,
when options are not applicable to the platform where it is invoked.
This is particularly good for users who work with xorg on more than
one platform.

When it comes to providing filenames, the man page only give the name
of the file where the man page is being built. It would not be too
bad if the whole man page only documented one platform, but this is not
the case.

The user is not told that the given filename only applies to the platform
the man page was built on. He will assume it is the same filename
on all platforms. Which filename will we chose when user browses
man pages from the web?

There are only two locations for each filename, so it is reasonable
to list them both.

The platforms checked are SCO, Solaris, Linix, *BSD and MAC.
The default values in sessreg.h appear to be wrong or very out dated
as I could not find any reference to them in current OS man pages.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 man/sessreg.man |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/man/sessreg.man b/man/sessreg.man
index c1a0dfe..723313c 100644
--- a/man/sessreg.man
+++ b/man/sessreg.man
@@ -88,15 +88,21 @@ and in Xreset:
 .SH OPTIONS
 .IP "\fB-w\fP \fIwtmp-file\fP"
 This specifies an alternate wtmp file, instead of
-.BR __wtmp_file__ .
+.BR var/log/wtmp
+or
+.BR var/adm/wtmp .
 The special name "none" disables writing records to the wtmp file.
 .IP "\fB-u\fP \fIutmp-file\fP"
 This specifies an alternate utmp file, instead of
-.BR __utmp_file__ .
+.BR var/log/utmp
+or
+.BR var/adm/utmp .
 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__ ,
+.BR /var/log/lastlog
+or
+.BR /var/adm/lastlog ,
 if the platform supports lastlog files.
 The special name "none" disables writing records to the lastlog file.
 .IP "\fB-l\fP \fIline-name\fP"
-- 
1.6.0.4



More information about the xorg-devel mailing list