Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2000 10:51:55 -0700 (PDT)
From:      Don Lewis <Don.Lewis@tsc.tdk.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/21241: MAKEDEV on fixit floppy should not reset $PATH
Message-ID:  <200009121751.e8CHpt905506@gvpc85.gv.tsc.tdk.com>

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

>Number:         21241
>Category:       misc
>Synopsis:       MAKEDEV on fixit floppy should not reset $PATH
>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:   Tue Sep 12 17:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Don Lewis
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
TDK Semiconductor Corp.
>Environment:

	

>Description:

	The copy of MAKEDEV on the fixit floppy should not reset its
	$PATH.  If it does, it won't be able to find the needed executables
	on the fixit floppy, such as expr.  The release/Makefile attempts
	to edit MAKEDEV to prevent it from setting $PATH, but some formatting
	changes to MAKEDEV now prevent the editing from being successful.

>How-To-Repeat:

	

>Fix:


Index: release/Makefile
===================================================================
RCS file: /home/ncvs/src/release/Makefile,v
retrieving revision 1.536.2.22
diff -u -r1.536.2.22 Makefile
--- release/Makefile	2000/08/22 09:43:55	1.536.2.22
+++ release/Makefile	2000/09/12 17:47:16
@@ -582,7 +582,7 @@
 	@cd ${.CURDIR} && $(MAKE) installCRUNCH CRUNCH=fixit \
 		DIR=${RD}/fixitfd/stand ZIP=false
 	@( cd ${RD}/fixitfd/dev && \
-		sed -e '/^PATH/s/^/#/' ${RD}/trees/bin/dev/MAKEDEV > MAKEDEV && \
+		sed -e '/^[ 	]*PATH/s/^/#/' ${RD}/trees/bin/dev/MAKEDEV > MAKEDEV && \
 		chmod 755 MAKEDEV && \
 		sh MAKEDEV fixit )
 	@cp ${RD}/trees/bin/etc/spwd.db ${RD}/trees/bin/etc/group \

>Release-Note:
>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?200009121751.e8CHpt905506>