commit 51644947b0326b92c509dca613b79497e0c0f5dd from: Stefan Sperling via: Thomas Adam date: Sun May 26 14:04:47 2024 UTC fix wrong errno check in bufio_close_sync() ok thomas_adam, op@ commit - d5ece9bf5fc64a3210e5b95f5421a523fbfac854 commit + 51644947b0326b92c509dca613b79497e0c0f5dd blob - 141ea5ab9f3b8b1b2767cb4e947d7065f387b0f2 blob + a0cbcb27a09f23766b65cf78d7f8c831291f5295 --- libexec/got-fetch-http/got-fetch-http.c +++ libexec/got-fetch-http/got-fetch-http.c @@ -85,7 +85,7 @@ bufio_close_sync(struct bufio *bio) do { r = bufio_close(bio); - if (r == -1 && errno == EAGAIN) + if (r == -1 && errno != EAGAIN) errx(1, "bufio_read: %s", bufio_io_err(bio)); } while (r == -1 && errno == EAGAIN); }