index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2008-01-13 11:08:59 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-13 12:51:37 -0600 |
commit | 8186dc11a90dbc310acaad7ee867ee995adbd6ed (patch) | |
tree | 796df8cc0fef61ecb4ad27b3d1b5ec586456a532 /lib | |
parent | bbe02ec57fd56670dfe0bc08d981ce8a1aa31370 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 2 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index d09b9b14..5959482d 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -399,6 +399,8 @@ int _alpm_unpack(const char *archive, const char *prefix, const char *fn) if(S_ISREG(st->st_mode)) { archive_entry_set_mode(entry, 0644); + } else if(S_ISDIR(st->st_mode)) { + archive_entry_set_mode(entry, 0755); } if (fn && strcmp(fn, entryname)) { |