[BACK]Return to kernfs_vnops.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / miscfs / kernfs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/miscfs/kernfs/kernfs_vnops.c between version 1.48 and 1.49

version 1.48, 1996/10/25 21:58:00 version 1.49, 1997/05/08 16:20:17
Line 402  kernfs_access(v)
Line 402  kernfs_access(v)
                 struct proc *a_p;                  struct proc *a_p;
         } */ *ap = v;          } */ *ap = v;
         struct vnode *vp = ap->a_vp;          struct vnode *vp = ap->a_vp;
         mode_t fmode =          mode_t mode;
             (vp->v_flag & VROOT) ? DIR_MODE : VTOKERN(vp)->kf_kt->kt_mode;  
   
         return (vaccess(fmode, (uid_t)0, (gid_t)0, ap->a_mode, ap->a_cred));          if (vp->v_flag & VROOT) {
                   mode = DIR_MODE;
           } else {
                   struct kern_target *kt = VTOKERN(vp)->kf_kt;
                   mode = kt->kt_mode;
           }
   
           return (vaccess(vp->v_type, mode, (uid_t)0, (gid_t)0, ap->a_mode,
               ap->a_cred));
 }  }
   
 int  int

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

CVSweb <webmaster@jp.NetBSD.org>