10000 Merge pull request #6929 from lrm29/util_win32_rmdir_access_denied · libgit2/libgit2@c6111ec · GitHub
[go: up one dir, main page]

Skip to content

Commit c6111ec

Browse files
authored
Merge pull request #6929 from lrm29/util_win32_rmdir_access_denied
util/win32: Continue if access is denied when deleting a folder.
2 parents b363ea4 + 57ae4b1 commit c6111ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/win32/posix_w32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ int p_rmdir(const char *path)
770770
* handle to the directory." This sounds like what everybody else calls
771771
* EBUSY. Let's convert appropriate error codes.
772772
*/
773+
case ERROR_ACCESS_DENIED:
773774
case ERROR_SHARING_VIOLATION:
774775
errno = EBUSY;
775776
break;

0 commit comments

Comments
 (0)
0