summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/imgact_coff.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/i386/ibcs2/imgact_coff.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/i386/ibcs2/imgact_coff.c')
-rw-r--r--sys/i386/ibcs2/imgact_coff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c
index b6c6cae..a7ab607 100644
--- a/sys/i386/ibcs2/imgact_coff.c
+++ b/sys/i386/ibcs2/imgact_coff.c
@@ -171,7 +171,8 @@ coff_load_file(struct thread *td, char *name)
unsigned long bss_size = 0;
int i;
- NDINIT(&nd, LOOKUP, LOCKLEAF | FOLLOW | SAVENAME, UIO_SYSSPACE, name, td);
+ NDINIT(&nd, LOOKUP, ISOPEN | LOCKLEAF | FOLLOW | SAVENAME,
+ UIO_SYSSPACE, name, td);
error = namei(&nd);
if (error)
OpenPOWER on IntegriCloud