Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-09-08 20:22:28 +0400
committernulltoken <emeric.fermas@gmail.com>2013-09-11 00:36:10 +0400
commitd0cd6c427a35b257373c7178d1e17d82001e125f (patch)
tree12c22e3a8b979d586391ccb410fd2bc1e985d710 /src/path.c
parent38859f293720a960acaf7f426c683ab1a71b18c6 (diff)
path: Make direach() return EUSER on callback error
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index 7c1ec2cd0..56b0b49ca 100644
--- a/src/path.c
+++ b/src/path.c
@@ -765,10 +765,10 @@ int git_path_direach(
git_buf_truncate(path, wd_len); /* restore path */
- if (result < 0) {
+ if (result) {
closedir(dir);
git__free(de_buf);
- return -1;
+ return GIT_EUSER;
}
}