diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-26 21:55:50 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-26 21:55:50 +0200 |
commit | d5f0395dc13fb305e75a5e78de57e148d87f12d7 (patch) | |
tree | 56a8433ca6bbbd9d230465451a8d501e49fd7974 /lib/libalpm/alpm.c | |
parent | a708e7d28e890c3e230a215629b7f5c58c57f58d (diff) | |
download | pacman-d5f0395dc13fb305e75a5e78de57e148d87f12d7.tar.gz pacman-d5f0395dc13fb305e75a5e78de57e148d87f12d7.tar.xz |
libalpm/util: two stat() related cleanups
First, use fstat() in preference to stat() since we already have an open
file handle. This also removes the need to check for a symlink as that
is not possible when a file is opened.
Next, use archive_entry_mode() rather than archive_entry_stat() as we
only use the mode portion of the stat struct and the call is much
cheaper. Also delay it until it is necessary.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
0 files changed, 0 insertions, 0 deletions