From a060ac91a4061cef9b86ff153585e3bc88e1d293 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 15 Dec 1995 01:15:03 +0000 Subject: Formerly nfs.c.~11~ --- nfs/nfs.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'nfs/nfs.c') diff --git a/nfs/nfs.c b/nfs/nfs.c index 2c62f01e..ec62896a 100644 --- a/nfs/nfs.c +++ b/nfs/nfs.c @@ -213,15 +213,6 @@ xdr_decode_fattr (int *p, struct stat *st) } -/* Decode *P into an fhandle, stored at HANDLE; return the address - of the following data. */ -int * -xdr_decode_fhandle (int *p, void *handle) -{ - bcopy (p, handle, NFS_FHSIZE); - return p + (NFS_FHSIZE / sizeof (int)); -} - /* Decode *P into a string, stored at BUF; return the address of the following data. */ int * @@ -244,8 +235,13 @@ nfs_initialize_rpc (int rpc_proc, struct netcred *cred, uid_t uid; uid_t gid; - if (cred - && (cred->nuids || cred->ngids)) + if (cred == (struct netcred *) -1) + { + uid = gid = 0; + second_gid = -2; + } + else if (cred + && (cred->nuids || cred->ngids)) { if (cred_has_uid (cred, 0)) { -- cgit v1.2.3