summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2016-02-13 07:51:13 -0500
committerSteve Dickson <steved@redhat.com>2016-03-16 10:45:28 -0400
commit1412314d3d4f096144f5293724f5c894dbfabb06 (patch)
treea73df3e82ba35d59078ae3d084dc6674aca7580b
parent75232900ecc0a06eb3079417470d403b14bd1255 (diff)
downloadnfs-utils-1412314d3d4f096144f5293724f5c894dbfabb06.tar.gz
nfs-utils-1412314d3d4f096144f5293724f5c894dbfabb06.tar.xz
nfs-utils-1412314d3d4f096144f5293724f5c894dbfabb06.zip
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 <steved@redhat.com>
-rw-r--r--utils/nfsidmap/nfsidmap.c2
1 files changed, 1 insertions, 1 deletions
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;
}