summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/po/remove-potcdate.sin
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-26 21:55:50 +0200
committerDan McGee <dan@archlinux.org>2011-10-26 21:55:50 +0200
commitd5f0395dc13fb305e75a5e78de57e148d87f12d7 (patch)
tree56a8433ca6bbbd9d230465451a8d501e49fd7974 /lib/libalpm/po/remove-potcdate.sin
parenta708e7d28e890c3e230a215629b7f5c58c57f58d (diff)
downloadpacman-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/po/remove-potcdate.sin')
0 files changed, 0 insertions, 0 deletions