Fix style bugs and other bugs in the NFS fix.
This commit is contained in:
parent
c7fa2a6521
commit
dfd0621acc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23519
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user