diff options
author | Steve Dickson <steved@redhat.com> | 2016-02-13 07:51:13 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-03-16 10:45:28 -0400 |
commit | 1412314d3d4f096144f5293724f5c894dbfabb06 (patch) | |
tree | a73df3e82ba35d59078ae3d084dc6674aca7580b | |
parent | 75232900ecc0a06eb3079417470d403b14bd1255 (diff) | |
download | nfs-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.c | 2 |
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; } |