Fix O_NOFOLLOW and do not follow softlinks if O_EXCL.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 7 May 2009 00:27:58 +0000 (17:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 7 May 2009 00:27:58 +0000 (17:27 -0700)
commit85dbab7f92746ac789075320a3f8012a75301f68
treeb7aea301c65c8596f579aa7ffefbf6ef8d5ef6a7
parentcc0758d09df08626d04a45be55bf80ceef7ef1bd
Fix O_NOFOLLOW and do not follow softlinks if O_EXCL.

A bug in sys_open() set NLC_FOLLOW bit for the nlookup() call unconditionally.
Removing the setting allows vn_open() to properly set NLC_FOLLOW conditionally
when both O_EXCL and O_NOFOLLOW are not set.
sys/kern/vfs_syscalls.c