diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-26 15:51:46 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-01 10:27:31 -0500 |
commit | 6df558177fac6bdcbd60de05038d6e6b7f224bd3 (patch) | |
tree | 43c923054e9f8fff09fb29f063a68040c8d3dd6a /.tx | |
parent | ed3cd7573600bf8be2bda01ad75da8bae2f589fb (diff) | |
download | pacman-6df558177fac6bdcbd60de05038d6e6b7f224bd3.tar.xz |
Convert package and database archive reads to use file descriptors
This gives us a bit more control and over the archive reading process,
and a bit less is done behind the scenes. It also allows us to use
fstat() in preference to stat(), which should avoid some potential race
conditions.
Some reorganization is necessary to move the stat calls after the open()
calls. Error handling and cleanup in general is also improved, as we had
several potential memory and file handle leaks before in some error
paths.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to '.tx')
0 files changed, 0 insertions, 0 deletions