2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include "../afs/param.h"
11 #include "../afs/sysincludes.h"
12 #include "../afs/afsincludes.h"
13 #include <sys/namei.h>
15 int osi_lookupname(char *aname, enum uio_seg seg, int followlink,
16 struct vnode **dirvpp, struct vnode **vpp)
26 /* if (dirvpp) flags|=WANTPARENT;*/ /* XXX LOCKPARENT? */
27 NDINIT(&n, LOOKUP, flags, seg, aname, current_proc());
35 /* should we do this? */
36 VOP_UNLOCK(n.ni_vp, 0, current_proc());
41 * afs_suser() returns true if the caller is superuser, false otherwise.
43 * Note that it must NOT set errno.
48 struct proc *p=current_proc();
50 if ((error = suser(p->p_ucred, &p->p_acflag)) == 0) {