mingw_rmdir: set errno=ENOTEMPTY when appropriate
commit1bc240bfe78aed9e5951c2048598b8b13b6b5616
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 26 May 2010 10:42:50 +0000 (26 12:42 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 17 Sep 2010 09:30:26 +0000 (17 10:30 +0100)
tree82c33eb2032d5453222af946826f788517a77031
parentecfa03414612cded7beec30a2107ae214e5e77fe
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