In message <[EMAIL PROTECTED]>, Greg Black writes:
> $ rmdir bar/
> $ ls -l
> total 0
> lrwxrwx--- 1 gjb wheel 3 Feb 4 06:35 bar -> foo
> $
>Oops, "rmdir bar/" ended up as "rmdir foo" and left the useless
>symlink bar in place.
Yup.
>BSD/OS gives that silly "Is a directory" error message for the
>"rmdir bar/" case, but at least it does not actually do anything.
>I don't think FreeBSD should do what it does. Is there any good
>reason to preserve this behaviour?
History. In earlier BSD, 'foo/' meant the same thing as 'foo/""', that
is to say, "foo/.". ("" => ".", sometimes). So, "bar/" implies a
dereferencing of the link.
I believe the silly "Is a directory" message will go away, but I don't think
we will end up following the link in that case, although it's still being
debated.
-s
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message