mingw_rmdir: set errno=ENOTEMPTY when appropriate
commit3142f2493ef4ea02409cd3d11165af0162f9fd98
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 26 May 2010 10:42:50 +0000 (26 12:42 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 24 Oct 2010 23:04:26 +0000 (25 00:04 +0100)
tree22f2ab2f24dd03a2d7bfe2d16ecf12dd6ef80714
parent2a146966334215b74a2a699bcd8e69fa54912662
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