Thread (17 messages) flat view 17 messages, 3 authors, 2022-01-12

Re: errno oversight

From: Junio C Hamano <hidden>
Date: 2021-12-08 19:02:44

Ævar Arnfjörð Bjarmason [off-list ref] writes:
quoted
quoted
                   if (refs_read_raw_ref(refs, refname, oid, &sb_refname,
                                      &read_flags, failure_errno)) {
                        *flags |= read_flags;
                        if (errno)
                                *failure_errno = errno;
...
Urg, sorry. Yes obviously that should use the failure_errno from
refs_read_raw_ref().
Yeah, I was wondering about the same thing, "refs_read_raw_ref()
takes the failure_errno pointer for stuffing errno there, doesn't
it?  does the caller need to do anything?".
I'll submit a fix for this soon. There's some good post-cleanup to be
done here, it seems only one upstream caller of
refs_resolve_ref_unsafe() cares about the failure_errno currently (but I
didn't look into your reftable code).
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help