summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-04-27 09:05:19 +0000
committerjeff <jeff@FreeBSD.org>2005-04-27 09:05:19 +0000
commitf869be5c723f74ca4c5c0d99a6ba4fcb9244126a (patch)
tree136593dab7ab3c0fb624d4feafbdd3bdb5f1ec90 /sys/kern/kern_exec.c
parenta6baba06d1cf1f5e56ba23805d837db4b42c35da (diff)
downloadFreeBSD-src-f869be5c723f74ca4c5c0d99a6ba4fcb9244126a.zip
FreeBSD-src-f869be5c723f74ca4c5c0d99a6ba4fcb9244126a.tar.gz
- Pass the ISOPEN flag to namei so filesystems will know we're about to
open them or otherwise access the data.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 9783615..52e1c68 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -348,7 +348,7 @@ do_execve(td, args, mac_p)
* in ni_vp amoung other things.
*/
ndp = &nd;
- NDINIT(ndp, LOOKUP, LOCKLEAF | FOLLOW | SAVENAME,
+ NDINIT(ndp, LOOKUP, ISOPEN | LOCKLEAF | FOLLOW | SAVENAME,
UIO_SYSSPACE, args->fname, td);
mtx_lock(&Giant);
OpenPOWER on IntegriCloud