summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-01-18 13:48:48 -0600
committerDan McGee <dan@archlinux.org>2009-01-18 13:48:48 -0600
commitc794661f1ea8c819d479948e92e5648de62787c5 (patch)
treef7570d87f370f1cdfe04ec72e0719120f41b9e34 /lib/libalpm/util.c
parent8929769902597f109fc6b49609fb64121becb197 (diff)
parent472e51b975b9cb8fe1f67c03ff72bbc067fa7f01 (diff)
downloadpacman-c794661f1ea8c819d479948e92e5648de62787c5.tar.xz
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 5e6ca0c0..1bec6344 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -321,9 +321,9 @@ int _alpm_unpack(const char *archive, const char *prefix, const char *fn)
entryname = archive_entry_pathname(entry);
if(S_ISREG(st->st_mode)) {
- archive_entry_set_mode(entry, 0644);
+ archive_entry_set_perm(entry, 0644);
} else if(S_ISDIR(st->st_mode)) {
- archive_entry_set_mode(entry, 0755);
+ archive_entry_set_perm(entry, 0755);
}
/* If a specific file was requested skip entries that don't match. */