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"
16 #include "afs/sysincludes.h"
17 #include "afsincludes.h"
18 #include <sys/namei.h>
21 osi_lookupname(char *aname, enum uio_seg seg, int followlink,
22 struct vnode **dirvpp, struct vnode **vpp)
32 /* if (dirvpp) flags|=WANTPARENT; *//* XXX LOCKPARENT? */
33 NDINIT(&n, LOOKUP, flags, seg, aname, current_proc());
34 if (error = namei(&n))
41 /* should we do this? */
42 VOP_UNLOCK(n.ni_vp, 0, current_proc());
47 * afs_suser() returns true if the caller is superuser, false otherwise.
49 * Note that it must NOT set errno.
55 struct proc *p = current_proc();
57 if ((error = suser(p->p_ucred, &p->p_acflag)) == 0) {