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 <afsconfig.h>
11 #include "afs/param.h"
15 #include "afs/sysincludes.h"
16 #include "afsincludes.h"
17 #include <sys/namei.h>
19 int osi_lookupname(char *aname, enum uio_seg seg, int followlink,
20 struct vnode **dirvpp, struct vnode **vpp)
30 /* if (dirvpp) flags|=WANTPARENT;*/ /* XXX LOCKPARENT? */
31 NDINIT(&n, LOOKUP, flags, seg, aname, current_proc());
39 /* should we do this? */
40 VOP_UNLOCK(n.ni_vp, 0, current_proc());
45 * afs_suser() returns true if the caller is superuser, false otherwise.
47 * Note that it must NOT set errno.
52 struct proc *p=current_proc();
54 if ((error = suser(p->p_ucred, &p->p_acflag)) == 0) {