diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-26 14:55:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-26 14:55:50 -0500 |
commit | d5f0395dc13fb305e75a5e78de57e148d87f12d7 (patch) | |
tree | 56a8433ca6bbbd9d230465451a8d501e49fd7974 /src/pacman/po/LINGUAS | |
parent | a708e7d28e890c3e230a215629b7f5c58c57f58d (diff) |
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 'src/pacman/po/LINGUAS')
0 files changed, 0 insertions, 0 deletions