rm cannot delete directory symlinks with new coreutils
|Reported by:||augiedoggie||Owned by:||korli|
|Component:||Applications/Command Line Tools||Version:||R1/Development|
|Has a Patch:||no||Platform:||All|
It seems as though the new coreutils added in hrev36275 is unable to delete symlinks which point at a directory. I first noticed the problem when trying to use the setgcc command which failed with:
rm: cannot remove `/boot/develop/abi//current': Is a directory Failed to set GCC x86/gcc4.
The problem can also be seen with:
mkdir dir ; ln -sf dir symdir; rm symdir
using rm fails with 'Is a directory'. using rm -r fails with 'Not a directory'