Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 1998 23:57:35 +0900
From:      Junji SAKAI <sakai@jp.freebsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   misc/7965: doFS.sh contains direct references to /mnt
Message-ID:  <19980917235735L.sakai@csl.cl.nec.co.jp>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980917235735L.sakai>