diff options
author | kwc@citi.umich.edu <kwc@citi.umich.edu> | 2006-07-03 18:34:10 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-07-04 10:27:15 +1000 |
commit | 3829bb90e764cd72c0009cb32a8b39d0fab89d81 (patch) | |
tree | dd2e3142db6b717466ff0bbc773dbc6a74b31e13 /utils/gssd/gssd.c | |
parent | 119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da (diff) | |
download | nfs-utils-3829bb90e764cd72c0009cb32a8b39d0fab89d81.tar.gz nfs-utils-3829bb90e764cd72c0009cb32a8b39d0fab89d81.tar.xz nfs-utils-3829bb90e764cd72c0009cb32a8b39d0fab89d81.zip |
Check that the gssapi library is usable early on.
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Do a call to determine mechanisms supported by the gssapi library early.
This allows us to discover early in case the gssapi library is somehow
misconfigured. We can bail out early and give a meaningful message
rather than getting errors on each attempt at a context negotiation.
Diffstat (limited to 'utils/gssd/gssd.c')
-rw-r--r-- | utils/gssd/gssd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c index 8e9c72a..d6ddaae 100644 --- a/utils/gssd/gssd.c +++ b/utils/gssd/gssd.c @@ -145,6 +145,9 @@ main(int argc, char *argv[]) "support setting debug level\n"); #endif + if (gssd_check_mechs() != 0) + errx(1, "Problem with gssapi library"); + if (!fg && daemon(0, 0) < 0) errx(1, "fork"); |