Date: Thursday, May 17, 2007 @ 23:26:24 Author: aaron Path: /home/cvs-pacman/pacman-lib/lib/libalpm Modified: add.c (1.131 -> 1.132) Fix libarchive permission extraction Hackish fix to ensure libarchive extracts files and dirs with the right permissions. For some reason extracting /tmp on install wasn't handled properly by librachive, so an explicit chmod will fix this. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com> -------+ add.c | 2 ++ 1 file changed, 2 insertions(+) Index: pacman-lib/lib/libalpm/add.c diff -u pacman-lib/lib/libalpm/add.c:1.131 pacman-lib/lib/libalpm/add.c:1.132 --- pacman-lib/lib/libalpm/add.c:1.131 Mon Apr 16 22:31:04 2007 +++ pacman-lib/lib/libalpm/add.c Thu May 17 23:26:24 2007 @@ -704,6 +704,8 @@ _alpm_log(PM_LOG_ERROR, _("could not extract %s (%s)"), filename, strerror(errno)); alpm_logaction(_("error: could not extract %s (%s)"), filename, strerror(errno)); errors++; + } else { + chmod(filename, archive_entry_mode(entry)); } /* calculate an hash if this is in newpkg's backup */