mingw_rmdir: set errno=ENOTEMPTY when appropriate
commit218abc76c9eeba72f2bd3dcd6167895ec73350df
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, 12 Jun 2010 11:09:32 +0000 (12 13:09 +0200)
treef3453282d12afe277d30529c3c359299c434b0c2
parent1a4b986c3273998272424d42d5996319d9069013
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