commit 0bd5fb752a05f0d096e2d9d0d11e1b02b4804849 from: Stefan Sperling date: Tue May 14 15:43:05 2024 UTC fix wrong errno check in bufio_close_sync() ok thomas_adam, op@ commit - 53c54f2220fc0893aa81f79860a50abc0940600c commit + 0bd5fb752a05f0d096e2d9d0d11e1b02b4804849 blob - 302be74ffa6969c1d5a365a2cf1e9e6de1c2bade blob + 60d1c064ec02a73113741f1fd4dbd5901fa18aee --- libexec/got-fetch-http/got-fetch-http.c +++ libexec/got-fetch-http/got-fetch-http.c @@ -83,7 +83,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); }