diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-06-29 15:22:24 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-30 17:34:32 +0200 |
commit | 0f4aaeee42135d06dd18eb585eab3bae0e5fbf34 (patch) | |
tree | eafe70aa36b340f986eae2e87e84056e3057be43 | |
parent | 002d2fda7a4e7f85798684c15809d30d27dc7034 (diff) | |
download | pacman-0f4aaeee42135d06dd18eb585eab3bae0e5fbf34.tar.gz pacman-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>
-rw-r--r-- | lib/libalpm/util.c | 2 |
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'; } |