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>
This commit is contained in:
parent
c88037203b
commit
4e6b7c1cde
1 changed files with 2 additions and 0 deletions
|
@ -700,6 +700,8 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
|
||||||
_alpm_log(PM_LOG_ERROR, _("could not extract %s (%s)"), filename, strerror(errno));
|
_alpm_log(PM_LOG_ERROR, _("could not extract %s (%s)"), filename, strerror(errno));
|
||||||
alpm_logaction(_("error: could not extract %s (%s)"), filename, strerror(errno));
|
alpm_logaction(_("error: could not extract %s (%s)"), filename, strerror(errno));
|
||||||
errors++;
|
errors++;
|
||||||
|
} else {
|
||||||
|
chmod(filename, archive_entry_mode(entry));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* calculate an hash if this is in newpkg's backup */
|
/* calculate an hash if this is in newpkg's backup */
|
||||||
|
|
Loading…
Add table
Reference in a new issue