What version of rmdir are you using ? SpareMiNT, your own compiled or newer coreutils one ?
I mean the C function rmdir! (not an commandline util). Greets, Ole