From owner-freebsd-security Sun Aug 29 19:36: 1 1999 Delivered-To: freebsd-security@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4431115126 for ; Sun, 29 Aug 1999 19:35:52 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id UAA00687; Sun, 29 Aug 1999 20:35:50 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id UAA00552; Sun, 29 Aug 1999 20:35:05 -0600 (MDT) Message-Id: <199908300235.UAA00552@harmony.village.org> Subject: Re: Not sure if you got it... To: dynamo@ime.net, security@FreeBSD.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> Date: Sun, 29 Aug 1999 20:35:05 -0600 From: Warner Losh Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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