can't delete directory symlinks??
Collins
erichey2
Mon May 17 11:57:09 PDT 2004
On Sunday 21 December 2003 10:14, Net Llama! wrote:
> I've just discovered some rather odd behavior when I can no longer
> delete symlinks that point to directories.
>
> For example, if I have:
> ln -s bar foo
> foo -> bar
>
> where bar is a directory, if I try to delete foo:
> rm foo
> rm: cannot remove `foo/': Not a directory
>
> Am i missing something obvious?
Sorry I can't recreate this behavior on my system.
mkdir bar
ln -s bar foo
rm foo
no message, foo link is gone
Now, rmdir foo fails of course with a similar message
ln -s bar foo
rmdir foo
rmdir: `foo': Not a directory
rm -r foo
no message, link is gone
HTH,
--
Collins
More information about the Linux-users
mailing list