FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 06-29-2011, 02:06 PM
Dan McGee
 
Default lib/util: modify entry_prefix, not prefix

On Wed, Jun 29, 2011 at 8:24 AM, Dave Reisner <d@falconindy.com> wrote:
> 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>
Dan fails again! Thanks for the catch.

> ---
> *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 6fbe08a..028ed8a 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) = '';
> * * * * * * * * * * * *}
> --
> 1.7.6
>
>
>
 

Thread Tools




All times are GMT. The time now is 09:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org