mingw_rmdir: set errno=ENOTEMPTY when appropriate
commit769936940751c86321c691f53adb5c72f3cdc551
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 26 May 2010 10:42:50 +0000 (26 12:42 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 20 Sep 2010 14:53:19 +0000 (20 15:53 +0100)
tree1a5049f1a5e30565ab68504850b2ba670fdda553
parent42b0b0f338ecf37a6ba45abd3bc9bae134141f1c
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