diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c index e0b00a086..55790ff7c 100644 --- a/src/path.c +++ b/src/path.c @@ -561,6 +561,10 @@ int git_path_set_error(int errno_value, const char *path, const char *action) giterr_set(GITERR_OS, "Failed %s - '%s' already exists", action, path); return GIT_EEXISTS; + case EACCES: + giterr_set(GITERR_OS, "Failed %s - '%s' permission denied", action, path); + return GIT_ENOACCESS; + default: giterr_set(GITERR_OS, "Could not %s '%s'", action, path); return -1; |