From owner-cvs-usrsbin Thu Nov 2 18:56:25 1995 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA05691 for cvs-usrsbin-outgoing; Thu, 2 Nov 1995 18:56:25 -0800 Received: (from jkh@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA05540 ; Thu, 2 Nov 1995 18:55:00 -0800 Date: Thu, 2 Nov 1995 18:55:00 -0800 From: "Jordan K. Hubbard" Message-Id: <199511030255.SAA05540@freefall.freebsd.org> To: CVS-commiters, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pkg_install/add main.c perform.c Sender: owner-cvs-usrsbin@FreeBSD.org Precedence: bulk jkh 95/11/02 18:54:59 Branch: usr.sbin/pkg_install/add RELENG_2_1_0 Modified: usr.sbin/pkg_install/add main.c perform.c Log: These patches fix two problems : 1 ) Tar was being called to process the archive after chdir()ing into the playpen, but the pathname given to it was uncorrected for the chdir(). This is corrected by converting _all_ pathname arguments using realpath() (fileFindByPath() is used as a last-ditch attempt if the argument can't be found) 2 ) min_free was being called on the saved invocation directory, not on the playpen at one point. (There are currently two seperate space checks, one when the playpen is created, and one later. This is harmless cruft) Submitted by: Michael Smith