summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2011-02-07 21:54:01 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-02-07 15:45:54 -0800
commitab1a11be7858e1f92ee2e4ee1d70fabe7d5fe0ee (patch)
treee1fc25e4c4da01c522fe5e614d6c218da032e1b9 /hash.c
parentmingw: add fallback for rmdir in case directory is in use (diff)
downloadtgif-ab1a11be7858e1f92ee2e4ee1d70fabe7d5fe0ee.tar.xz
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> Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hash.c')
0 files changed, 0 insertions, 0 deletions