diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-09-16 11:02:19 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-09-16 11:21:41 -0400 |
commit | 49f6c29fcfd924b2b964cce75623463c0d1c0d59 (patch) | |
tree | c589ac1c09ea0d77e62924dd3e35b52f1f8f475a /support/nfs/mydaemon.c | |
parent | 43bcaca81740cbe78f4f97cf8b0fc39350a17a68 (diff) | |
download | nfs-utils-49f6c29fcfd924b2b964cce75623463c0d1c0d59.tar.gz nfs-utils-49f6c29fcfd924b2b964cce75623463c0d1c0d59.tar.xz nfs-utils-49f6c29fcfd924b2b964cce75623463c0d1c0d59.zip |
nfsidmap: Fix error handling in id_lookup()
As near as I can tell, the exit status of nfsidmap is supposed to be
zero (success) or one (failure).
The return value of id_lookup() becomes the exit status, so it
should return only zero or one.
The libnfsidmap calls return a signed integer, either 0 or negative
errno values. These have to be translated to an exit status.
libkeyutils calls return a signed long, either 0 or -1. These also
have to be translated to an exit status.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/mydaemon.c')
0 files changed, 0 insertions, 0 deletions