nfsidmapd: allow the usage message to be displayed
Subsystems (2)
PATCH 1/1 nfsidmapd: allow the usage message to be displayed
xlog_err() never returns. Change the xlog_err(),
when invalid arguments are use, to xlog_warn()
so the second xlog_warn, displaying the usage,
will be called.
Signed-off-by Steve Dickson <[email protected]>
--- utils/nfsidmap/nfsidmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/nfsidmap/nfsidmap.c +1 -1
@@ -430,7 +430,7 @@ int main(int argc, char **argv)xlog_stderr (verbose);if ((argc - optind) !=2 ) { -xlog_err ("Bad arg count. Check /etc/request-key.conf" ); +xlog_warn ("Bad arg count. Check /etc/request-key.conf" );xlog_warn (usage, progname);return EXIT_FAILURE ; }
Signature · 1 line
2.5.0
Quoted 6 lines · Steve Dickson
xlog_err()never returns. Change thexlog_err(),
when invalid arguments are use, toxlog_warn()
so the secondxlog_warn, displaying the usage,
will be called.Signed-off-by Steve Dickson <[email protected]>
Committed...
steved.
Quoted 18 lines
--- utils/nfsidmap/nfsidmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)utils/nfsidmap/nfsidmap.c +1
-1@@ -430,7 +430,7 @@ int main(int argc, char **argv)xlog_stderr (verbose);if ((argc - optind) !=2 ) { -xlog_err ("Bad arg count. Check /etc/request-key.conf" ); +xlog_warn ("Bad arg count. Check /etc/request-key.conf" );xlog_warn (usage, progname);return EXIT_FAILURE ; }