Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/autoclean.sh
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-26 15:51:46 -0500
committerDan McGee <dan@archlinux.org>2011-11-01 10:27:31 -0500
commit6df558177fac6bdcbd60de05038d6e6b7f224bd3 (patch)
tree43c923054e9f8fff09fb29f063a68040c8d3dd6a /autoclean.sh
parented3cd7573600bf8be2bda01ad75da8bae2f589fb (diff)
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 'autoclean.sh')
0 files changed, 0 insertions, 0 deletions