gssd, statd: correct command help text
Subsystems (2)
cover gssd, statd: correct command help text
Bring the command help in line with the options accepted by rpc.gssd and rpc.statd. The first patch removes a stale rpc.gssd option and adds its timeout option. The second adds the existing NLM port options to rpc.statd usage output.
The series is based on current nfs-utils master. A fresh autotools build and make check complete successfully; the statd integration test is skipped when its required service environment is unavailable.
Prabhakar Pujeri (2):
gssd: sync usage() and man page synopsis with actual options
statd: document the NLM port options in usage()
utils/gssd/gssd.c | 2 +- utils/gssd/gssd.man | 2 +- utils/statd/statd.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.55.0
PATCH 1/2 gssd: sync usage() and man page synopsis with actual options
The getopt string no longer contains 'l', so the '-l' advertised by usage() and the rpc.gssd(8) synopsis only earns users an "invalid option". Conversely, the -T rpc-timeout option exists but was never added to usage().
Drop the stale -l from both places and document -T.
--- utils/gssd/gssd.c | 2 +- utils/gssd/gssd.man | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
utils/gssd/gssd.c +1 -1
@@ -1023,7 +1023,7 @@ sig_die(int signal)static void usage (char *progname) { -fprintf (stderr,"usage: %s [-f] [-l] [-M] [-n] [-v] [-r] [-p pipefsdir] [-k keytab] [-d ccachedir] [-t timeout] [-R preferred realm] [-D] [-H] [-U upcall timeout] [-C]\n" , +fprintf (stderr,"usage: %s [-f] [-M] [-n] [-v] [-r] [-p pipefsdir] [-k keytab] [-d ccachedir] [-t timeout] [-T rpc-timeout] [-R preferred realm] [-D] [-H] [-U upcall timeout] [-C]\n" , progname);exit (1 ); }
utils/gssd/gssd.man +1 -1
@@ -8,7 +8,7 @@ rpc.gssd \- RPCSEC_GSS daemon .SH SYNOPSIS .B rpc.gssd -.RB [ \-DfMnlvrHC ] +.RB [ \-DfMnvrHC ] .RB [ \-k .IR keytab ] .RB [ \-p
Signature · 1 line
2.55.0
PATCH 2/2 statd: document the NLM port options in usage()
In reply to Prabhakar Pujerirpc.statd accepts -T/--nlm-port and -U/--nlm-udp-port and both are described in rpc.statd(8), but usage() never mentions them.
--- utils/statd/statd.c | 2 ++ 1 file changed, 2 insertions(+)
utils/statd/statd.c +2 -0
@@ -153,6 +153,8 @@ usage(void)fprintf (stderr," -d, --no-syslog Verbose logging to stderr. Foreground mode only.\n" );fprintf (stderr," -p, --port Port to listen on\n" );fprintf (stderr," -o, --outgoing-port Port for outgoing connections\n" ); +fprintf (stderr," -T, --nlm-port NLM TCP port (and UDP, unless set separately)\n" ); +fprintf (stderr," -U, --nlm-udp-port NLM UDP port\n" );fprintf (stderr," -V, -v, --version Display version information and exit.\n" );fprintf (stderr," -n, --name Specify a local hostname.\n" );fprintf (stderr," -P State directory path.\n" );
Signature · 1 line
2.55.0
Quoted 9 lines · Prabhakar Pujeri
Bring the command help in line with the options accepted by rpc.gssd and rpc.statd. The first patch removes a stale rpc.gssd option and adds its timeout option. The second adds the existing NLM port options to rpc.statd usage output.
The series is based on current nfs-utils master. A fresh autotools build and make check complete successfully; the statd integration test is skipped when its required service environment is unavailable.
Quoted 9 lines
Prabhakar Pujeri (2):
gssd: syncusage()and man page synopsis with actual options
statd: document the NLM port options inusage()utils/gssd/gssd.c | 2 +- utils/gssd/gssd.man | 2 +- utils/statd/statd.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-)
Committed... (tag: nfs-utils-2-9-3-rc3)
steved.