From owner-freebsd-bugs Mon May 20 14:20:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 17A5437B40B for ; Mon, 20 May 2002 14:20:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4KLK2G83129; Mon, 20 May 2002 14:20:02 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 2845937B401 for ; Mon, 20 May 2002 14:11:05 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4KLB5hG087543 for ; Mon, 20 May 2002 14:11:05 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4KLB5jj087542; Mon, 20 May 2002 14:11:05 -0700 (PDT) Message-Id: <200205202111.g4KLB5jj087542@www.freebsd.org> Date: Mon, 20 May 2002 14:11:05 -0700 (PDT) From: John Baldwin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/38360: pkg_info does not handle relative paths to package filenames Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38360 >Category: bin >Synopsis: pkg_info does not handle relative paths to package filenames >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: Mon May 20 14:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: John Baldwin >Release: 4.5-STABLE >Organization: The Weather Channel >Environment: FreeBSD randi.atl.weather.com 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Apr 29 13:12:20 EDT 2002 root@randi.atl.weather.com:/usr/obj/usr/src/sys/GENERIC-SMP i386 >Description: pkg_info works ok on a package if the file is in the current directory and no directory pathnames are specified or if an absolute path is specified. It also seems to work if the relative path starts with a dot. >How-To-Repeat: > pwd /n/ud2host/ud2/jbaldwin/work/pkg/cd/packages/All > ll bash-2.05a.tgz -rw-r--r-- 1 jbaldwin xlhost 775900 May 15 22:52 bash-2.05a.tgz > pkg_info -I bash-2.05a.tgz bash-2.05a.tgz The GNU Bourne Again Shell > pkg_info -I ${PWD}/bash-2.05a.tgz bash-2.05a.tgz The GNU Bourne Again Shell > pkg_info -I ../All/bash-2.05a.tgz bash-2.05a.tgz The GNU Bourne Again Shell > cd .. > pkg_info -I All/bash-2.05a.tgz pkg_info: can't find package `bash-2.05a.tgz' installed or in a file! > ll All/bash-2.05a.tgz -rw-r--r-- 1 jbaldwin xlhost 775900 May 15 22:52 All/bash-2.05a.tgz >Fix: None. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message