#964 rm -rf directory

Known_bugs
closed-fixed
Earnie Boyd
MSYS (75)
2006-11-28
2006-09-08
yyk
No

win2k, NTFS
coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2

$ mkdir 000

$ rm -rf 000/
rm: cannot remove directory `000/': No such file or
directory

$ rm -rf 000
rm: cannot remove directory `000': No such file or
directory

$ ls
000/

$ rmdir.exe 000

$ ls

$

Why?

Thanks!

--
WBR, Yaroslav Kavenchuk.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2006-09-08

    • milestone: --> Known_bugs
    • priority: 5 --> 9
     
  • Earnie Boyd
    Earnie Boyd
    2006-09-08

    Logged In: YES
    user_id=15438

    I have not debugged the reason yet. Once I have all the
    packages built I will revisit this one.

     
  • Earnie Boyd
    Earnie Boyd
    2006-09-13

    Logged In: YES
    user_id=15438

    Grumble. I've discovered what is going on but it makes me
    wonder how the code in src/remove.c works on other systems.
    Perhaps it is because of inode magic. The basic issue is
    that the last chdir("..") isn't being applied correctly when
    remove.c descends into the directory. I have a working
    version of rm but I want to give it a few more shakes before
    I call it good enough to package into a snapshot. BTW, in
    the current snapshot ``rm -ri 000'' will work if the
    directory is empty but ``rm -rf 000' errors.

     
  • Earnie Boyd
    Earnie Boyd
    2006-11-28

    • status: open --> closed-fixed
     
  • Earnie Boyd
    Earnie Boyd
    2006-11-28

    Logged In: YES
    user_id=15438
    Originator: NO

    Issue resolved. Replaced coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2 with a current snapshot so download the file again.