Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2001 20:00:00 -0700 (PDT)
From:      tom@wact.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/27485: pkg_add -r segfaults when PACKAGEROOT set
Message-ID:  <200105210300.f4L300k18182@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         27485
>Category:       bin
>Synopsis:       pkg_add -r segfaults when PACKAGEROOT set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 20:00:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tom Uffner
>Release:        current
>Organization:
>Environment:
FreeBSD discordia.uffner.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Wed May  2 09:00:12 EDT 2001     tom@discordia.uffner.com:/usr/obj/usr/src/sys/DISCORDIA  i386
>Description:
see summary
>How-To-Repeat:
setenv PACKAGEROOT ftp://ftp3.FreeBSD.org/pub
pkg_add -r tkcvs

the values of PACKAGEROOT and the package fetched do not matter
it will happen regardless.
>Fix:
Index: main.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/pkg_install/add/main.c,v
retrieving revision 1.35
diff -c -w -r1.35 main.c
*** main.c      2001/04/26 06:48:59     1.35
--- main.c      2001/05/21 02:19:26
***************
*** 197,203 ****
        strcpy(sitepath, "ftp://ftp.FreeBSD.org");
  
      if (getenv("PACKAGEROOT"))
!       strcpy(sitepath, getenv("PACKAGEMIRRORROOT"));
      else
        strcat(sitepath, "/pub");
  
--- 197,203 ----
        strcpy(sitepath, "ftp://ftp.FreeBSD.org");
  
      if (getenv("PACKAGEROOT"))
!       strcpy(sitepath, getenv("PACKAGEROOT"));
      else
        strcat(sitepath, "/pub");

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105210300.f4L300k18182>