diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-09-08 20:22:28 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-09-11 00:36:10 +0400 |
commit | d0cd6c427a35b257373c7178d1e17d82001e125f (patch) | |
tree | 12c22e3a8b979d586391ccb410fd2bc1e985d710 /src/path.c | |
parent | 38859f293720a960acaf7f426c683ab1a71b18c6 (diff) |
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; } } |