artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f917af5
)
Fix errno for post-lock unveil calls
author
deraadt
<deraadt@openbsd.org>
Sat, 1 Sep 2018 17:02:12 +0000
(17:02 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 1 Sep 2018 17:02:12 +0000
(17:02 +0000)
from Jan Klemkow
sys/kern/vfs_syscalls.c
patch
|
blob
|
history
diff --git
a/sys/kern/vfs_syscalls.c
b/sys/kern/vfs_syscalls.c
index
767ec03
..
4281137
100644
(file)
--- a/
sys/kern/vfs_syscalls.c
+++ b/
sys/kern/vfs_syscalls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfs_syscalls.c,v 1.30
4 2018/08/20 16:00:22 mpi Exp $
*/
+/* $OpenBSD: vfs_syscalls.c,v 1.30
5 2018/09/01 17:02:12 deraadt Exp $
*/
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@
-899,7
+899,7
@@
sys_unveil(struct proc *p, void *v, register_t *retval)
}
if (p->p_p->ps_uvdone != 0)
- return E
INVAL
;
+ return E
PERM
;
error = copyinstr(SCARG(uap, permissions), permissions,
sizeof(permissions), NULL);