diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-09-29 19:19:54 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-09-30 03:52:56 +0200 |
commit | 20392c0a025d01128eb78c6656db7c15b3fbcd89 (patch) | |
tree | 69c5a125d64409e55fea23508fe3e5e7203951c6 /pactest/tests/deptest001.py | |
parent | 7f14f185a2d05650e1f99f4ec40d60b597e8b0c7 (diff) | |
download | pacman-20392c0a025d01128eb78c6656db7c15b3fbcd89.tar.gz pacman-20392c0a025d01128eb78c6656db7c15b3fbcd89.tar.xz |
dload : fix infinite download (big type mistake)
fetchIO_read returns -1 in case of error, and the return type is
ssize_t, not size_t ! So we converted -1 to an unsigned, which led to
huge file write.
The rest is just changing the error return a bit.
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/deptest001.py')
0 files changed, 0 insertions, 0 deletions