]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh fails to read files larger than BUFSIZ bytes
authorJim Meyering <meyering@redhat.com>
Thu, 19 Jun 2008 14:30:52 +0000 (14:30 +0000)
committerJim Meyering <meyering@redhat.com>
Thu, 19 Jun 2008 14:30:52 +0000 (14:30 +0000)
commite09fab39a8081e23bdea1d8fb1e524aca7867f8e
tree20c3c13c974eb517ea7f0050a74c9f339f3866fc
parent2dc11b36a160abbedff9f4a66ac4f82673709de5
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 895d0fdf5bef358fafb91c672609190b3088097b.
* tests/Makefile.am (test_scripts): Add read-bufsiz.
* tests/read-bufsiz: New test for the above.
ChangeLog
src/util.c
tests/Makefile.am
tests/read-bufsiz [new file with mode: 0755]