artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477e6dc
)
ni_pledge flags are a uint64_t not an int - don't initialize with an int.
author
beck
<beck@openbsd.org>
Fri, 3 Aug 2018 02:36:11 +0000
(
02:36
+0000)
committer
beck
<beck@openbsd.org>
Fri, 3 Aug 2018 02:36:11 +0000
(
02:36
+0000)
sys/kern/vfs_syscalls.c
patch
|
blob
|
history
diff --git
a/sys/kern/vfs_syscalls.c
b/sys/kern/vfs_syscalls.c
index
4c9d575
..
0fdc307
100644
(file)
--- a/
sys/kern/vfs_syscalls.c
+++ b/
sys/kern/vfs_syscalls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfs_syscalls.c,v 1.
299 2018/07/30 17:21:37 anton Exp $
*/
+/* $OpenBSD: vfs_syscalls.c,v 1.
300 2018/08/03 02:36:11 beck Exp $
*/
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@
-991,7
+991,7
@@
doopenat(struct proc *p, int fd, const char *path, int oflags, mode_t mode,
int type, indx, error, localtrunc = 0;
struct flock lf;
struct nameidata nd;
-
in
t ni_pledge = 0;
+
uint64_
t ni_pledge = 0;
if (oflags & (O_EXLOCK | O_SHLOCK)) {
error = pledge_flock(p);