]> git.ipfire.org Git - thirdparty/git.git/blobdiff - reftable/stack.c
reftable: handle interrupted reads
[thirdparty/git.git] / reftable / stack.c
index ddbdf1b9c8bf4668dfe4f9b7c03cabd43effb660..ed108a929bbf467030341534cf51852a9e905282 100644 (file)
@@ -92,7 +92,7 @@ static int fd_read_lines(int fd, char ***namesp)
        }
 
        buf = reftable_malloc(size + 1);
-       if (read(fd, buf, size) != size) {
+       if (read_in_full(fd, buf, size) != size) {
                err = REFTABLE_IO_ERROR;
                goto done;
        }