Code cleanups related to RHBZ#580246.
authorRichard Jones <rjones@redhat.com>
Wed, 7 Apr 2010 20:04:01 +0000 (21:04 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 21:22:58 +0000 (22:22 +0100)
commit86fb1e3440bd5601059f04cb6f1b0157948d26be
tree72ef0db119d1965685ea49be021a78d00406e1b6
parentdfd7f552bbd09d3e0fb9bcd99a195e04ae9d6de8
Code cleanups related to RHBZ#580246.

This includes various code cleanups:

 (a) A regression test for RHBZ#580246.

 (b) Use write instead of fwrite to write out the tar file.  This is
     just because the error handling of write seems to be better
     specified and easier to use.

 (c) Use size_t instead of int for length.

 (d) Clearer debug messages when in verbose mode.
(cherry picked from commit de7ef2a0fdcbcddfd35ecb8ee2804e1ca0968454)
daemon/daemon.h
daemon/proto.c
daemon/tar.c
daemon/upload.c
regressions/Makefile.am
regressions/rhbz580246.sh [new file with mode: 0755]