Fix ufdCopy() for large (> 2GB) files
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Mar 2012 08:05:32 +0000 (10:05 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Mar 2012 09:19:47 +0000 (11:19 +0200)
commitaa90bda89b15389f59fdf4c836892561f24a6479
tree317e6689edd6a2c10bc2e58eb2c041e785c3452a
parentc3f36967423fb079d6f6cc25e9e1d5e0626a7d86
Fix ufdCopy() for large (> 2GB) files

- Files can be (much) larger than INT32_MAX, change the return
  type to off_t and fix + simplify the calculations. Fixes the other
  half of RhBug:790396 and makes ufdCopy() usable for other purposes too.
rpmio/rpmio.c
rpmio/rpmio.h