diff options
author | guido <guido@FreeBSD.org> | 1997-03-08 15:14:30 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1997-03-08 15:14:30 +0000 |
commit | d3df6f9beba08586927062fa3ad7d45cf30506d2 (patch) | |
tree | d8efb87f99df3317db9f79ec47a2db94a1209473 /sys | |
parent | 56f9fdc5ecc04bac50402fad43559845dc5ab7f7 (diff) | |
download | FreeBSD-src-d3df6f9beba08586927062fa3ad7d45cf30506d2.zip FreeBSD-src-d3df6f9beba08586927062fa3ad7d45cf30506d2.tar.gz |
Fix style bugs and other bugs in the NFS fix.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_vnops.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index ed3a4d9..31d2c23 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94 - * $Id: vfs_vnops.c,v 1.30 1997/02/22 09:39:36 peter Exp $ + * $Id: vfs_vnops.c,v 1.31 1997/03/07 07:42:41 gpalmer Exp $ */ #include <sys/param.h> @@ -411,11 +411,10 @@ vn_stat(vp, sb, p) sb->st_ctimespec = vap->va_ctime; sb->st_blksize = vap->va_blocksize; sb->st_flags = vap->va_flags; - if (suser (p->p_cred->pc_ucred, &p->p_acflag)) { - sb->st_gen = 0; - } else { - sb->st_gen = vap->va_gen; - } + if (p->p_ucred->cr_uid != 0) + sb->st_gen = 0; + else + sb->st_gen = vap->va_gen; #if (S_BLKSIZE == 512) /* Optimize this case */ |