summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver/nfsm_subs.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-05-31 19:00:19 +0000
committerpeter <peter@FreeBSD.org>1998-05-31 19:00:19 +0000
commita21fad22e004e0ea740a93a97eae018ade9a71a6 (patch)
tree86bb05e81ec22a77a8e21654a6e43c639da7b87f /sys/nfsserver/nfsm_subs.h
parent985cae8566eb17adf4fec3db796796b71d381886 (diff)
downloadFreeBSD-src-a21fad22e004e0ea740a93a97eae018ade9a71a6.zip
FreeBSD-src-a21fad22e004e0ea740a93a97eae018ade9a71a6.tar.gz
Don't pass a second copy of the uid/gid in with the v2/v3 sattr structures,
it just makes more work. We pass a copy of the uid/gid with the credentials. (although, this may need to be revisited if a non AUTHUNIX authentication method (such as NFSKERB) ever gets implemented). Obtained from: NetBSD
Diffstat (limited to 'sys/nfsserver/nfsm_subs.h')
-rw-r--r--sys/nfsserver/nfsm_subs.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/nfsserver/nfsm_subs.h b/sys/nfsserver/nfsm_subs.h
index efba82b..bb254a2 100644
--- a/sys/nfsserver/nfsm_subs.h
+++ b/sys/nfsserver/nfsm_subs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
- * $Id: nfsm_subs.h,v 1.18 1998/05/31 17:48:07 peter Exp $
+ * $Id: nfsm_subs.h,v 1.19 1998/05/31 18:19:43 peter Exp $
*/
@@ -235,13 +235,11 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
(f) = ttattrf; \
} }
-#define nfsm_v3sattr(s, a, u, g) \
+#define nfsm_v3sattr(s, a) \
{ (s)->sa_modetrue = nfs_true; \
(s)->sa_mode = vtonfsv3_mode((a)->va_mode); \
- (s)->sa_uidtrue = nfs_true; \
- (s)->sa_uid = txdr_unsigned(u); \
- (s)->sa_gidtrue = nfs_true; \
- (s)->sa_gid = txdr_unsigned(g); \
+ (s)->sa_uidfalse = nfs_false; \
+ (s)->sa_gidfalse = nfs_false; \
(s)->sa_sizefalse = nfs_false; \
(s)->sa_atimetype = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT); \
txdr_nfsv3time(&(a)->va_atime, &(s)->sa_atime); \
OpenPOWER on IntegriCloud