Al Viro 86acdca1b6 fix autofs/afs/etc. magic mountpoint breakage
We end up trying to kfree() nd.last.name on open("/mnt/tmp", O_CREAT)
if /mnt/tmp is an autofs direct mount.  The reason is that nd.last_type
is bogus here; we want LAST_BIND for everything of that kind and we
get LAST_NORM left over from finding parent directory.

So make sure that it *is* set properly; set to LAST_BIND before
doing ->follow_link() - for normal symlinks it will be changed
by __vfs_follow_link() and everything else needs it set that way.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-01-14 09:05:25 -05:00
..
2009-10-08 07:36:38 -07:00
2009-05-15 15:32:45 +02:00
2009-10-29 07:39:25 -07:00
2007-10-17 08:42:48 -07:00
2009-09-23 07:39:29 -07:00
2009-12-16 12:19:59 +01:00
2009-01-05 12:27:44 +03:00
2010-01-11 09:34:07 -08:00