diff options
author | Amrita Sadhukhan <Amrita.Sadhukhan@Sun.COM> | 2009-03-24 04:08:14 -0700 |
---|---|---|
committer | Amrita Sadhukhan <Amrita.Sadhukhan@Sun.COM> | 2009-03-24 04:08:14 -0700 |
commit | 7118438764fa72449465bddea896d1a18a7630c9 (patch) | |
tree | a0c364b83b0cdfb6ed01f0412daf10f828f0ecf5 | |
parent | fe37c54d747b42e6ba91c90c9a1bdd69d2c8b909 (diff) | |
download | illumos-gate-7118438764fa72449465bddea896d1a18a7630c9.tar.gz |
6679231 port_getattr() sets vap->va_mask to 0 which could confuse callers
-rw-r--r-- | usr/src/uts/common/fs/portfs/port_vnops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/src/uts/common/fs/portfs/port_vnops.c b/usr/src/uts/common/fs/portfs/port_vnops.c index 00c1044dfa..b2f5088e06 100644 --- a/usr/src/uts/common/fs/portfs/port_vnops.c +++ b/usr/src/uts/common/fs/portfs/port_vnops.c @@ -20,12 +20,10 @@ */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <sys/vnode.h> #include <sys/vfs_opreg.h> @@ -320,7 +318,6 @@ port_getattr(struct vnode *vp, struct vattr *vap, int flags, cred_t *cr, pp = VTOEP(vp); - vap->va_mask = 0; /* bit-mask of attributes */ vap->va_type = vp->v_type; /* vnode type (for create) */ vap->va_mode = 0; /* file access mode */ vap->va_uid = pp->port_uid; /* owner user id */ |