Observe the following:

    $ uname -rs
    FreeBSD 4.1-RELEASE
    $ ls -l
    $ mkdir foo
    $ ln -s foo bar
    $ rmdir bar
    rmdir: bar: Not a directory

So far, so good -- but look at this:

    $ 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.

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?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to