mingw_rmdir: set errno=ENOTEMPTY when appropriate
commitd10116a95634ef4eabe9b7802ef240bf86347abb
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 26 May 2010 10:42:50 +0000 (26 12:42 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 29 Jul 2010 11:17:17 +0000 (29 13:17 +0200)
tree63a1333d3e33ca19df2c2ebb6abd7d946c4c9b85
parent68bc3d900fe8e838a6389598d819aac97ef2018c
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