freebsd-dev/sys
Dag-Erling Smørgrav 32bf7cdf5a Let vfs_lookup() return ENOTDIR if the path has a trailing slash and
the last component is a symlink to something that isn't a directory.

We introduce a new namei flag, TRAILINGSLASH, which is set by lookup()
if the last component is followed by a slash.  The trailing slash is
then stripped, as before.  If the final component is a symlink,
lookup() will return to namei(), which will expand the symlink and
call lookup() with the new path.  When all symlinks have been
resolved, lookup() checks if the TRAILINGSLASH flag is set, and if it
is, and the vnode it ended up with is not a directory, it returns
ENOTDIR.

PR:		kern/21768
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
MFC after:	3 weeks
2009-05-29 10:02:44 +00:00
..
amd64 Don't bother reading the initial value of the machine check banks during 2009-05-20 16:11:22 +00:00
arm Delete the old USB stack. The new stack has settled in and has all the 2009-05-27 16:16:56 +00:00
boot Some of the boot loader code only works on a ufs file system, but it 2009-05-28 08:22:36 +00:00
bsm
cam
cddl Reverse the logic for ADAPTIVE_SX option and enable it by default. 2009-05-29 01:49:27 +00:00
compat Implement SI_ISALIST. 2009-05-29 06:27:30 +00:00
conf Reverse the logic for ADAPTIVE_SX option and enable it by default. 2009-05-29 01:49:27 +00:00
contrib Add hierarchical jails. A jail may further virtualize its environment 2009-05-27 14:11:23 +00:00
crypto Changed to M_NOWAIT when reallocing psc_buf in padlock_sha_update(), 2009-05-27 09:52:12 +00:00
ddb
dev Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
fs Make *getpages()s' assertion on the state of each page's dirty bits 2009-05-28 18:11:09 +00:00
gdb
geom - Unbreak 64 bit platforms by casting off_t to intmax. 2009-05-26 14:15:06 +00:00
gnu Remove empty files and do nto try to build them. 2009-05-18 17:20:24 +00:00
i386 Say hello to a very basic, read-only, Xen Hypervisor RTC. 2009-05-28 04:17:05 +00:00
ia64 Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
isa
kern Let vfs_lookup() return ENOTDIR if the path has a trailing slash and 2009-05-29 10:02:44 +00:00
kgssapi Fix build of KGSSAPI bits post-vimage. 2009-05-24 11:10:27 +00:00
libkern
mips pmap_enter() *must* set PG_WRITEABLE on the given page if it creates a 2009-05-23 22:05:14 +00:00
modules Add the kernel build glue for the experimental NFS subsystem that 2009-05-28 19:45:11 +00:00
net Add hierarchical jails. A jail may further virtualize its environment 2009-05-27 14:11:23 +00:00
net80211 Fix handling of devices w/o radiotap support: 2009-05-25 16:38:47 +00:00
netatalk
netgraph s/usb2_/usb_/ on all C structs for the USB stack. 2009-05-28 17:36:36 +00:00
netinet Correct handling of SYN packets that are to the left of the current window of an ESTABLISHED connection. 2009-05-27 17:02:10 +00:00
netinet6 Merge final round of MLD changes from p4: 2009-05-27 18:57:13 +00:00
netipsec Lock SPTREE before parsing it in key_spddump() 2009-05-27 09:44:14 +00:00
netipx Staticize spx_remque() now that it's only used from spx_reass.c. 2009-05-25 13:52:51 +00:00
netnatm Replace d_thread_t * with struct thread *. 2009-05-20 17:00:16 +00:00
netncp
netsmb
nfs Add cpu_flush_dcache() for use after non-DMA based I/O so that a 2009-05-18 18:37:18 +00:00
nfsclient Make *getpages()s' assertion on the state of each page's dirty bits 2009-05-28 18:11:09 +00:00
nfsserver Add hierarchical jails. A jail may further virtualize its environment 2009-05-27 14:11:23 +00:00
nlm Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00
opencrypto Fix cryptodev UIO creation. 2009-05-23 13:23:46 +00:00
pc98 Add cpu_flush_dcache() for use after non-DMA based I/O so that a 2009-05-18 18:37:18 +00:00
pci
powerpc Set PG_WRITEABLE in Book-E pmap_enter[_locked] if it creates a mapping that 2009-05-26 06:24:50 +00:00
rpc MFdevbranch 192944 2009-05-28 08:18:12 +00:00
security Add hierarchical jails. A jail may further virtualize its environment 2009-05-27 14:11:23 +00:00
sparc64 Add nge(4), nge(4) should work on all architectures. 2009-05-21 02:19:01 +00:00
sun4v Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
sys Let vfs_lookup() return ENOTDIR if the path has a trailing slash and 2009-05-29 10:02:44 +00:00
tools
ufs Add hierarchical jails. A jail may further virtualize its environment 2009-05-27 14:11:23 +00:00
vm Change vm_object_page_remove() such that it clears the page's dirty bits 2009-05-28 07:26:36 +00:00
xdr MFdevbranch 192944 2009-05-28 08:18:12 +00:00
xen Don't call the watch callback if its NULL. 2009-05-28 04:03:16 +00:00
Makefile Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00