Incompatiple types (size_t/ssize_t) can make vmtar to ignore errors. We now compile
with -Werror and -Wtype-limits to detect such things.
VERSION=2.0
PACKAGE=qemu-server
-PKGREL=62
+PKGREL=63
DESTDIR=
PREFIX=/usr
h2ph -d . vzsyscalls.h
vmtar: vmtar.c utils.c
- gcc -O2 -Wall -o vmtar vmtar.c
+ gcc -O2 -Werror -Wall -Wtype-limits -o vmtar vmtar.c
sparsecp: sparsecp.c utils.c
- gcc -O2 -Wall -o sparsecp sparsecp.c
+ gcc -O2 -Werror -Wall -Wtype-limits -o sparsecp sparsecp.c
%.1.gz: %.1.pod
rm -f $@
+qemu-server (2.0-63) unstable; urgency=low
+
+ * fix bug in vmtar
+
+ -- Proxmox Support Team <support@proxmox.com> Thu, 25 Oct 2012 10:00:50 +0200
+
qemu-server (2.0-62) unstable; urgency=low
* vncproxy: wait until vnc port is ready
int
full_read(int fd, char *buf, size_t len)
{
- size_t n;
+ ssize_t n;
size_t total;
total = 0;
int
full_write(int fd, char *buf, size_t len)
{
- size_t n;
+ ssize_t n;
size_t total;
total = 0;
while (bytes_left > 0) {
size_t bufsize = (bytes_left > BLOCKSIZE) ? BLOCKSIZE : bytes_left;
- size_t bytes_read;
+ ssize_t bytes_read;
char *blkbuf = buffer_block (wbuf);
if ((bytes_read = full_read (fd, blkbuf, bufsize)) < 0) {