summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2019-07-15 15:05:21 +0000
committerbeck <beck@openbsd.org>2019-07-15 15:05:21 +0000
commite53a8a4db134bad336bbcef4e3f8de1f2de1eaf9 (patch)
treea960e1125eba928a930620ea139d9d0e7f085a5b
parentMake realpath posixly correct by changing the kernel implementation (diff)
downloadwireguard-openbsd-e53a8a4db134bad336bbcef4e3f8de1f2de1eaf9.tar.xz
wireguard-openbsd-e53a8a4db134bad336bbcef4e3f8de1f2de1eaf9.zip
revert unintended change that snuck in last commit
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 6d105ae9b16..e2069c14329 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.322 2019/07/15 14:56:45 beck Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.323 2019/07/15 15:05:21 beck Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -2083,7 +2083,7 @@ doreadlinkat(struct proc *p, int fd, const char *path, char *buf,
NDINITAT(&nd, LOOKUP, NOFOLLOW | LOCKLEAF, UIO_USERSPACE, fd, path, p);
nd.ni_pledge = PLEDGE_RPATH;
- nd.ni_unveil = UNVEIL_READ;
+ nd.ni_unveil = UNVEIL_INSPECT;
if ((error = namei(&nd)) != 0)
return (error);
vp = nd.ni_vp;