diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-01-06 17:22:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-07 19:30:08 -0800 |
commit | 204a047f23462e4931eb00c367818d9870237827 (patch) | |
tree | 73b6d90e28f537ffe36ca8f8b3627aba14da6329 /abspath.c | |
parent | safe_create_leading_directories_const(): preserve errno (diff) | |
download | tgif-204a047f23462e4931eb00c367818d9870237827.tar.xz |
safe_create_leading_directories(): set errno on SCLD_EXISTS
The exit path for SCLD_EXISTS wasn't setting errno, which some callers
use to generate error messages for the user. Fix the problem and
document that the function sets errno correctly to help avoid similar
regressions in the future.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'abspath.c')
0 files changed, 0 insertions, 0 deletions