s/NOFOLLOW/FOLLOW/ in NDINIT so that it matches actual behavior
which is controlled by NO_FOLLOW bit passed in 2nd arg of vn_open().
This commit is contained in:
parent
c2af4c75ef
commit
d5b0f6df4c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_acct.c,v 1.86 2008/04/24 18:39:23 ad Exp $ */
|
||||
/* $NetBSD: kern_acct.c,v 1.87 2009/02/11 00:32:45 enami Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.86 2008/04/24 18:39:23 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.87 2009/02/11 00:32:45 enami Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -305,7 +305,7 @@ sys_acct(struct lwp *l, const struct sys_acct_args *uap, register_t *retval)
|
||||
if (SCARG(uap, path) != NULL) {
|
||||
struct vattr va;
|
||||
size_t pad;
|
||||
NDINIT(&nd, LOOKUP, NOFOLLOW | TRYEMULROOT, UIO_USERSPACE,
|
||||
NDINIT(&nd, LOOKUP, FOLLOW | TRYEMULROOT, UIO_USERSPACE,
|
||||
SCARG(uap, path));
|
||||
if ((error = vn_open(&nd, FWRITE|O_APPEND, 0)) != 0)
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user