diff options
Diffstat (limited to 'sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c b/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c index 328bba1..c214488 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c @@ -83,10 +83,9 @@ kobj_open_file_vnode(const char *file) } FILEDESC_XUNLOCK(fd); - flags = FREAD; + flags = FREAD | O_NOFOLLOW; NDINIT(&nd, LOOKUP, MPSAFE, UIO_SYSSPACE, file, td); - error = vn_open_cred(&nd, &flags, O_NOFOLLOW, 0, curthread->td_ucred, - NULL); + error = vn_open_cred(&nd, &flags, 0, 0, curthread->td_ucred, NULL); NDFREE(&nd, NDF_ONLY_PNBUF); if (error != 0) return (NULL); |