From owner-cvs-ports@FreeBSD.ORG Thu Aug 5 23:37:47 2004 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F36B16A4CE; Thu, 5 Aug 2004 23:37:47 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BDBB43D60; Thu, 5 Aug 2004 23:37:47 +0000 (GMT) (envelope-from jdp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i75Nbl7w089492; Thu, 5 Aug 2004 23:37:47 GMT (envelope-from jdp@repoman.freebsd.org) Received: (from jdp@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i75NblK8089491; Thu, 5 Aug 2004 23:37:47 GMT (envelope-from jdp) Message-Id: <200408052337.i75NblK8089491@repoman.freebsd.org> From: John Polstra Date: Thu, 5 Aug 2004 23:37:47 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: ports/net/cvsup-mirror Makefile pkg-install ports/net/cvsup-mirror/files update.sh X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 23:37:47 -0000 jdp 2004-08-05 23:37:47 UTC FreeBSD ports repository Modified files: net/cvsup-mirror Makefile pkg-install net/cvsup-mirror/files update.sh Log: Fix two bugs in scripts. 1. If update.sh failed to determine the PREFIX, it didn't realize it had failed. This is arguably caused by a shell bug in processing the statement export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$") This statement always succeeds even if the "expr" command fails. Moving the "export" to a separate statement makes it work. 2. If the system had no "/home" directory, the pkg-install script would create it with mode 0700, making ~cvsupin inaccessible to its owner. A user ran into this bug when installing cvsup-mirror into a jail. Revision Changes Path 1.21 +1 -1 ports/net/cvsup-mirror/Makefile 1.17 +2 -1 ports/net/cvsup-mirror/files/update.sh 1.6 +3 -3 ports/net/cvsup-mirror/pkg-install