mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #6929 from lrm29/util_win32_rmdir_access_denied
util/win32: Continue if access is denied when deleting a folder.
This commit is contained in:
@@ -770,6 +770,7 @@ int p_rmdir(const char *path)
|
||||
* handle to the directory." This sounds like what everybody else calls
|
||||
* EBUSY. Let's convert appropriate error codes.
|
||||
*/
|
||||
case ERROR_ACCESS_DENIED:
|
||||
case ERROR_SHARING_VIOLATION:
|
||||
errno = EBUSY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user