Re: [RFC] Bug in mkdir(2)

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Wed, 16 Jun 1999 23:15:57 +0200 (MEST)


Linus Torvalds wrote:
>
>
> On Wed, 16 Jun 1999, Alexander Viro wrote:
> >
> > In other words, if foo is a dangling symlink mkdir("foo/") will merrily
> > follow it. Which it shouldn't.
>
> Why? I think the follows symlink behaviour is the right one, and is
> consistent with "open" etc. Are there any pressing reasons to not do it?

You mean I can do

cd /usr/src
# remove the old link
rm linux
ln -s linux-2.3.104 linux
tar xvfz linux-2.3.104.tar.gz

? And tar will create the directory for me? Now I always go through the
extra step of creating that subdir....

Nifty!

Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/