From 1412314d3d4f096144f5293724f5c894dbfabb06 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Sat, 13 Feb 2016 07:51:13 -0500 Subject: 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 --- utils/nfsidmap/nfsidmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfsidmap/nfsidmap.c b/utils/nfsidmap/nfsidmap.c index d980c68..2abefe9 100644 --- a/utils/nfsidmap/nfsidmap.c +++ b/utils/nfsidmap/nfsidmap.c @@ -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; } -- cgit