Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 20:35:05 -0600
From:      Warner Losh <imp@village.org>
To:        dynamo@ime.net, security@FreeBSD.ORG
Subject:   Re: Not sure if you got it... 
Message-ID:  <199908300235.UAA00552@harmony.village.org>
In-Reply-To: Your message of "Sun, 29 Aug 1999 18:18:54 MDT." <199908300018.SAA90400@harmony.village.org> 
References:  <199908300018.SAA90400@harmony.village.org>  <Pine.BSI.4.02.9908282221020.15859-100000@ime.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
Actually, here's the isolated fix.  I'm working out the issues with
chflags a reviewer brought up.    I'll be committing this shortly.  I
wanna do a few more tests with it before making the change.

Warner

Index: rc
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/etc/rc,v
retrieving revision 1.195
diff -u -r1.195 rc
--- rc	1999/08/27 23:23:43	1.195
+++ rc	1999/08/30 02:18:24
@@ -354,7 +360,9 @@
 
 		# Unmodified nvi editor backup files either have the
 		# execute bit set or are zero length.  Delete them.
-		if test -x ${i} -o ! -s ${i}; then
+		# Delete everything that isn't a normal file as well,
+		# since vi cannot generate them.
+		if test -x ${i} -o ! -s ${i} -o ! -f ${i}; then
 			rm -f ${i}
 		fi
 	done


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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