diff options
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 */ |