diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-09-08 18:22:28 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-09-10 22:36:10 +0200 |
commit | d0cd6c427a35b257373c7178d1e17d82001e125f (patch) | |
tree | 12c22e3a8b979d586391ccb410fd2bc1e985d710 /src/path.c | |
parent | 38859f293720a960acaf7f426c683ab1a71b18c6 (diff) | |
download | libgit2-d0cd6c427a35b257373c7178d1e17d82001e125f.tar.gz |
path: Make direach() return EUSER on callback error
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 4 |
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; } } |