diff options
author | Gary Palmer <gpalmer@FreeBSD.org> | 1997-03-07 07:42:41 +0000 |
---|---|---|
committer | Gary Palmer <gpalmer@FreeBSD.org> | 1997-03-07 07:42:41 +0000 |
commit | 324d42ad5719f968f250277c811b90dddba3c25d (patch) | |
tree | 18dd8b0cc4067e4224e21cff2cd789fc49602591 /sys/kern/vfs_vnops.c | |
parent | e42337987f30cb541941813018cc26d96fba28fa (diff) | |
download | src-test2-324d42ad5719f968f250277c811b90dddba3c25d.tar.gz src-test2-324d42ad5719f968f250277c811b90dddba3c25d.zip |
Notes
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 77b043035700..ed3a4d983ba0 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$ + * $Id: vfs_vnops.c,v 1.30 1997/02/22 09:39:36 peter Exp $ */ #include <sys/param.h> @@ -411,7 +411,12 @@ vn_stat(vp, sb, p) sb->st_ctimespec = vap->va_ctime; sb->st_blksize = vap->va_blocksize; sb->st_flags = vap->va_flags; - sb->st_gen = vap->va_gen; + if (suser (p->p_cred->pc_ucred, &p->p_acflag)) { + sb->st_gen = 0; + } else { + sb->st_gen = vap->va_gen; + } + #if (S_BLKSIZE == 512) /* Optimize this case */ sb->st_blocks = vap->va_bytes >> 9; |