From owner-freebsd-bugs Thu Sep 17 08:00:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA20824 for freebsd-bugs-outgoing; Thu, 17 Sep 1998 08:00:25 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA20798 for ; Thu, 17 Sep 1998 08:00:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA11064; Thu, 17 Sep 1998 08:00:00 -0700 (PDT) Received: from research.gate.nec.co.jp (research.gate.nec.co.jp [202.32.8.49]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA20043 for ; Thu, 17 Sep 1998 07:58:09 -0700 (PDT) (envelope-from sakai@csl.cl.nec.co.jp) Received: from csl.cl.nec.co.jp (root@csl.cl.nec.co.jp [133.207.2.51]) by research.gate.nec.co.jp (8.8.8+2.7Wbeta7/971104) with ESMTP id XAA22939 for ; Thu, 17 Sep 1998 23:57:37 +0900 (JST) Received: from csls33.csl.cl.nec.co.jp (root@csls33.csl.cl.nec.co.jp [10.56.48.6]) by csl.cl.nec.co.jp (8.8.5+2.7Wbeta5/CSL-960227) with ESMTP id XAA10032; Thu, 17 Sep 1998 23:57:37 +0900 (JST) Received: from localhost (sakai@parsley.csl.cl.nec.co.jp [10.56.48.30]) by csls33.csl.cl.nec.co.jp (8.8.5+2.7Wbeta5/CSL-960227) with ESMTP id XAA28305; Thu, 17 Sep 1998 23:57:35 +0900 (JST) Message-Id: <19980917235735L.sakai@csl.cl.nec.co.jp> Date: Thu, 17 Sep 1998 23:57:35 +0900 From: Junji SAKAI Reply-To: sakai@jp.freebsd.org To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/7965: doFS.sh contains direct references to /mnt Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7965 >Category: misc >Synopsis: doFS.sh contains direct references to /mnt >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 17 08:00:00 PDT 1998 >Last-Modified: >Originator: Junji SAKAI >Organization: Japanese manual translation project >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD 2.2.7-STABLE as of Sep 16, 1998 /usr/src/release directory >Description: doFS.sh script in /usr/src/release directory has direct references to "/mnt", rather than via ${MNT} variable. So even if one specifies other than "/mnt" as a doFS.sh argument, doFS.sh still accesses /mnt and produces wrong parameters. >How-To-Repeat: put, for example, a line "MNT = /mnt2" in /usr/src/release/Makefile and invoke "make release.8" in /usr/src/release >Fix: --- doFS.sh.orig Thu Jul 16 11:22:00 1998 +++ doFS.sh Thu Sep 17 23:03:24 1998 @@ -47,9 +47,9 @@ ( set -e && cd ${FSPROTO} && find . -print | cpio -dump ${MNT} ) - df -ki /mnt + df -ki ${MNT} - set `df -ki /mnt | tail -1` + set `df -ki ${MNT} | tail -1` umount ${MNT} >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message