diff options
author | 2015-11-07 08:02:29 +0000 | |
---|---|---|
committer | 2015-11-07 08:02:29 +0000 | |
commit | 46d0fe8851e11ec7109516d6159ec0d61d248ad6 (patch) | |
tree | 5505e6cf9634bdab34441390c5ead65a5f543c6f | |
parent | Simplify and clarify. (diff) | |
download | wireguard-openbsd-46d0fe8851e11ec7109516d6159ec0d61d248ad6.tar.xz wireguard-openbsd-46d0fe8851e11ec7109516d6159ec0d61d248ad6.zip |
typo in nd variable used for adding ni_pledge note
ok deraadt@
-rw-r--r-- | sys/compat/common/compat_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/common/compat_util.c b/sys/compat/common/compat_util.c index 4579891ba1a..0b368ec2ae4 100644 --- a/sys/compat/common/compat_util.c +++ b/sys/compat/common/compat_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compat_util.c,v 1.17 2015/11/05 23:43:33 deraadt Exp $ */ +/* $OpenBSD: compat_util.c,v 1.18 2015/11/07 08:02:29 semarie Exp $ */ /* $NetBSD: compat_util.c,v 1.4 1996/03/14 19:31:45 christos Exp $ */ /* @@ -129,7 +129,7 @@ emul_find(struct proc *p, caddr_t *sgp, const char *prefix, */ /* XXX: prototype should have const here for NDINIT */ NDINIT(&ndroot, LOOKUP, FOLLOW, UIO_SYSSPACE, prefix, p); - nd.ni_pledge = PLEDGE_EXEC; + ndroot.ni_pledge = PLEDGE_EXEC; if ((error = namei(&ndroot)) != 0) goto bad2; |