diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-09-16 11:03:54 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-09-16 11:21:41 -0400 |
commit | 0b463a7bc09d89e0e141546ea5c5c59d94c5fefe (patch) | |
tree | 42cf28f56413d5c291ea8448f9522ddcd09c674a /support/nfs/mydaemon.c | |
parent | 49f6c29fcfd924b2b964cce75623463c0d1c0d59 (diff) | |
download | nfs-utils-0b463a7bc09d89e0e141546ea5c5c59d94c5fefe.tar.gz nfs-utils-0b463a7bc09d89e0e141546ea5c5c59d94c5fefe.tar.xz nfs-utils-0b463a7bc09d89e0e141546ea5c5c59d94c5fefe.zip |
nfsidmap: Fix error handling in name_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 name_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