virsh fails to read files larger than BUFSIZ bytes

* src/util.c (fread_file_lim): Use VIR_REALLOC_N, not VIR_ALLOC_N.
Bug introduced in 895d0fdf5b.
* tests/Makefile.am (test_scripts): Add read-bufsiz.
* tests/read-bufsiz: New test for the above.
This commit is contained in:
Jim Meyering
2008-06-19 14:30:52 +00:00
parent 2dc11b36a1
commit e09fab39a8
4 changed files with 53 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ noinst_PROGRAMS = xmlrpctest xml2sexprtest sexpr2xmltest virshtest conftest \
test_scripts = \
daemon-conf \
int-overflow \
read-bufsiz \
read-non-seekable \
vcpupin