From nobody@FreeBSD.org  Tue Feb  5 09:39:11 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id AA1A137B42B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Feb 2002 09:39:09 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g15Hd9h54063;
	Tue, 5 Feb 2002 09:39:09 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202051739.g15Hd9h54063@freefall.freebsd.org>
Date: Tue, 5 Feb 2002 09:39:09 -0800 (PST)
From: Luiz Otavio Souza <luiz@travelnet.com.br>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bzip2 instaled with system isn't found by tar -y[j]cvf
X-Send-Pr-Version: www-1.0

>Number:         34643
>Category:       misc
>Synopsis:       bzip2 instaled with system isn't found by tar -y[j]cvf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 05 09:40:00 PST 2002
>Closed-Date:    Wed Feb 6 16:49:15 PST 2002
>Last-Modified:  Wed Feb 06 17:05:19 PST 2002
>Originator:     Luiz Otavio Souza
>Release:        4.4 and 4.5
>Organization:
>Environment:
FreeBSD crowley.travelnet.com.br 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Tue Feb  5 10:31:24 BRST 2002
   root@crowley.travelnet.com.br:/usr/src/sys/compile/CROWLEY  i386
>Description:
      my backup routine uses tar and bzip2, and since the bzip2 was instaled by the system the tar aplication do not found the bzip2 instaled
>How-To-Repeat:
      just make tar -y[j]cvf backup.tar.bz2 /anything
>Fix:
      i use this with sucess: ln -s /usr/bin/bzip2 /usr/local/bin/bzip2
>Release-Note:
>Audit-Trail:

From: "Crist J. Clark" <cristjc@earthlink.net>
To: Luiz Otavio Souza <luiz@travelnet.com.br>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/34643: bzip2 instaled with system isn't found by tar -y[j]cvf
Date: Tue, 5 Feb 2002 16:27:16 -0800

 On Tue, Feb 05, 2002 at 09:39:09AM -0800, Luiz Otavio Souza wrote:
 [snip]
 
 > >Description:
 >       my backup routine uses tar and bzip2, and since the bzip2 was instaled by the system the tar aplication do not found the bzip2 instaled
 > >How-To-Repeat:
 >       just make tar -y[j]cvf backup.tar.bz2 /anything
 > >Fix:
 >       i use this with sucess: ln -s /usr/bin/bzip2 /usr/local/bin/bzip2
 
 tar(1) works just fine for me with '-j'. The compression program is
 called with an execlp(2) so it should be found as long as it is in
 your path. What is the error you are getting, and you are using
 /usr/bin/tar, correct (and not some other version)?
 
 This does not look like a OS bug to me.
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

From: "Crist J. Clark" <cristjc@earthlink.net>
To: Luiz Otavio Souza <luiz@travelnet.com.br>
Cc: bug-followup@freebsd.org
Subject: Re: misc/34643: bzip2 instaled with system isn't found by tar -y[j]cvf
Date: Wed, 6 Feb 2002 14:58:45 -0800

 On Wed, Feb 06, 2002 at 06:11:03PM -0200, Luiz Otavio Souza wrote:
 > i'm running tar from a shell script (with /bin/sh) and the path is not set
 > to /usr/bin.
 > When you talk about path, i find the problem rapidly.
 > sorry by this false alarm. I didnt find anything about how the bzip2
 > was executed by tar.
 
 Even if PATH is not set, it should work since it should default to
 searching /bin:/usr/bin. It only should be a problem if PATH exists,
 but does not contain /usr/bin. But I'll close up this PR.
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Wed Feb 6 16:49:15 PST 2002 
State-Changed-Why:  
The problem was with the environment's PATH. Submitter agrees this 
should be closed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34643 
>Unformatted:
