mingw_rmdir: set errno=ENOTEMPTY when appropriate
commitd8cb7298b32c6ecbc244ad79b944b344e25c8a7b
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 26 May 2010 10:42:50 +0000 (26 12:42 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 8 Jan 2011 14:15:27 +0000 (8 15:15 +0100)
tree18780482c1553621ce033c009965293327ff783f
parentd551772eb7b432e191096564a27cdc128d67ff10
mingw_rmdir: set errno=ENOTEMPTY when appropriate

On Windows, EACCES overrules ENOTEMPTY when calling rmdir(). But if the
directory is busy, we only want to retry deleting the directory if it
is empty, so test specifically for that case and set ENOTEMPTY rather
than EACCES.

Noticed by Greg Hazel.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c