During a software installation, the configure script created a symbolic link with what seems to be ln -s foo foo on a smbfs filesystem mounted with the options credentials=/etc/fstab.passwd,uid=1001,gid=1001,file_mode=0644,dir_mode=0755,rwThe filesystem is simfs on the host machine. I tried to remove this symbolic link with rm, unlink but nothing works. The stat command cannot access any information. How could I remove this link ?
Undeletable symbolic link on smbfs/simfs
filesystems;symlink
It sounds as if the filesystem is confused because the symbolic link is pointing to itself. You might try to see if you can rename the link, e.g., mv foo foo2. If it lets you do that, then you might still have to create a dummy file named foo (by touch foo) to appease the filesystem before removing the symbolic link (rm foo2).