summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.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/compat/linux/linux_misc.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/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 85cd13b..4c6b53f 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -268,7 +268,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
* XXX: This code should make use of vn_open(), rather than doing
* all this stuff itself.
*/
- NDINIT(&ni, LOOKUP, FOLLOW|LOCKLEAF, UIO_SYSSPACE, library, td);
+ NDINIT(&ni, LOOKUP, ISOPEN|FOLLOW|LOCKLEAF, UIO_SYSSPACE, library, td);
error = namei(&ni);
LFREEPATH(library);
if (error)
OpenPOWER on IntegriCloud