summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-15 01:15:03 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-15 01:15:03 +0000
commita060ac91a4061cef9b86ff153585e3bc88e1d293 (patch)
treece7463e302ff015b29dea972f84369740826332a /nfs
parentfb87234090a18f586068e9d69f2e0a4037f73e0e (diff)
Formerly nfs.c.~11~
Diffstat (limited to 'nfs')
-rw-r--r--nfs/nfs.c18
1 files changed, 7 insertions, 11 deletions
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))
{