diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-14 11:01:14 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-14 11:01:14 -0700 |
| commit | 72bfde97908007ef28b6ab34dcece2aea90c8f53 (patch) | |
| tree | 2ca42665f5e7ae0cbd28c54ec2be438bfe1fd10f /src/fileops.c | |
| parent | 27f5b7cfed263a2b0cc01f6f7b6036a1b5ec9ec9 (diff) | |
| parent | 212eb09d5fdf04018478eb375df369f9e7e56b66 (diff) | |
| download | libgit2-72bfde97908007ef28b6ab34dcece2aea90c8f53.tar.gz | |
Merge pull request #681 from scottjg/solaris-fixes
Fix build/runtime issues on Solaris
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 6b9d78381..ee9d4212d 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -306,7 +306,7 @@ static int _rmdir_recurs_foreach(void *opaque, git_buf *path) return -1; if (p_rmdir(path->ptr) < 0) { - if (removal_type == GIT_DIRREMOVAL_ONLY_EMPTY_DIRS && errno == ENOTEMPTY) + if (removal_type == GIT_DIRREMOVAL_ONLY_EMPTY_DIRS && (errno == ENOTEMPTY || errno == EEXIST)) return 0; giterr_set(GITERR_OS, "Could not remove directory '%s'", path->ptr); |
