commit 276bccc4651afa03134d0faa1cf1c703b5f819bd from: Omar Polo date: Tue May 16 08:07:11 2023 UTC log close() failure in gotweb_free_transport commit - e62232ad5eede7312d40cef9a300a4c74ea91eda commit + 276bccc4651afa03134d0faa1cf1c703b5f819bd blob - 7d35dffc6c05bb644d99b76ec99f20412ac6a048 blob + b6d0cc835948d84bab46566884f83f5ffb33f43b --- gotwebd/gotweb.c +++ gotwebd/gotweb.c @@ -748,8 +748,8 @@ gotweb_free_transport(struct transport *t) log_warnx("%s: got_gotweb_flushfile failure: %s", __func__, err->msg); } - if (t->fd != -1) - close(t->fd); + if (t->fd != -1 && close(t->fd) == -1) + log_warn("%s: close", __func__); if (t->repos) { for (i = 0; i < t->nrepos; ++i) free(t->repos[i]);