Skip to contentSkip to conversation

utmpdump: document optional filename argument

PATCH Applied Bernhard Voelker 2 participants 2 messages Jul 3, 2012 – Jul 9, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utmpdump: document optional filename argument

The filename argument vanished from usage() in commit v2.21-791-gc8a6af0, and I found it worthwhile to document the behavior in the man page when filename is missing (i.e. stdin is used instead).

Have a nice day,
Berny

Quoted 1 line

From e7c7a6300a20f7fd8f1e2211ac856cbceba740d2 Mon Sep 17 00:00:00 2001

From: Bernhard Voelker <[email protected]>
Date: Tue, 3 Jul 2012 09:42:55 +0200
Subject: [PATCH] utmpdump: document optional filename argument

---
 login-utils/utmpdump.1 |    5 ++++-
 login-utils/utmpdump.c |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
login-utils/utmpdump.1 +4 -1
index 65dfe32..4df49dd 100644
@@ -21,10 +21,13 @@ utmpdump \- dump UTMP and WTMP files in raw format
 .SH SYNOPSIS
 .B utmpdump
 .RB [ \-frh ]
-.I filename
+.I [ filename ]
 .SH DESCRIPTION
 \fButmpdump\fP is a simple program to dump UTMP and WTMP files
 in raw format, so they can be examined.
+\fButmpdump\fP reads from stdin unless a
+.I filename
+is passed.
 .SH OPTIONS
 .IP "\fB\-f, \-\-follow\fP"
 output appended data as the file grows.
login-utils/utmpdump.c +1 -1
index ac072d4..fd3e74a 100644
@@ -190,7 +190,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 	fputs(USAGE_HEADER, out);
 
 	fprintf(out,
-		_(" %s [options]\n"), program_invocation_short_name);
+		_(" %s [options] [filename]\n"), program_invocation_short_name);
 
 	fputs(USAGE_OPTIONS, out);
 	fputs(_(" -f, --follow           output appended data as the file grows\n"
Signature · 1 line
1.7.7
maintainer Applied
#1 lore raw
Quoted 3 lines · Bernhard Voelker
 login-utils/utmpdump.1 |    5 ++++-
 login-utils/utmpdump.c |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com