Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Add VLAYER to tests which will cause VOP_REVOKE to ...



details:   https://anonhg.NetBSD.org/src/rev/d781de6e253c
branches:  trunk
changeset: 474928:d781de6e253c
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Mon Jul 26 19:20:09 1999 +0000

description:
Add VLAYER to tests which will cause VOP_REVOKE to be called in sys_revoke().

diffstat:

 sys/kern/vfs_syscalls.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3f10c77b8e06 -r d781de6e253c sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Mon Jul 26 18:42:21 1999 +0000
+++ b/sys/kern/vfs_syscalls.c   Mon Jul 26 19:20:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.144 1999/07/25 06:30:35 thorpej Exp $       */
+/*     $NetBSD: vfs_syscalls.c,v 1.145 1999/07/26 19:20:09 wrstuden Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -2957,7 +2957,7 @@
        if (p->p_ucred->cr_uid != vattr.va_uid &&
            (error = suser(p->p_ucred, &p->p_acflag)) != 0)
                goto out;
-       if (vp->v_usecount > 1 || (vp->v_flag & VALIASED))
+       if (vp->v_usecount > 1 || (vp->v_flag & (VALIASED | VLAYER)))
                VOP_REVOKE(vp, REVOKEALL);
 out:
        vrele(vp);



Home | Main Index | Thread Index | Old Index