summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-29 09:22:24 -0400
committerDan McGee <dan@archlinux.org>2011-06-30 10:34:32 -0500
commit0f4aaeee42135d06dd18eb585eab3bae0e5fbf34 (patch)
treeeafe70aa36b340f986eae2e87e84056e3057be43 /lib/libalpm
parent002d2fda7a4e7f85798684c15809d30d27dc7034 (diff)
downloadpacman-0f4aaeee42135d06dd18eb585eab3bae0e5fbf34.tar.xz
lib/util: modify entry_prefix, not prefix
Modifying prefix caused tmp directories to be left behind after running scriptlets, and the path '/' to be passed to _alpm_rmrf. Broken in f01c6f. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 6fbe08ae..028ed8aa 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -300,7 +300,7 @@ int _alpm_unpack(pmhandle_t *handle, const char *archive, const char *prefix,
/* If specific files were requested, skip entries that don't match. */
if(list) {
char *entry_prefix = strdup(entryname);
- char *p = strstr(prefix,"/");
+ char *p = strstr(entry_prefix,"/");
if(p) {
*(p+1) = '\0';
}