From owner-freebsd-security Thu May 30 11: 2:59 2002 Delivered-To: freebsd-security@freebsd.org Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by hub.freebsd.org (Postfix) with ESMTP id 5601037B408; Thu, 30 May 2002 11:02:54 -0700 (PDT) Received: from sheldonh (helo=axl.seasidesoftware.co.za) by axl.seasidesoftware.co.za with local-esmtp (Exim 3.33 #1) id 17DUGb-0001o9-00; Thu, 30 May 2002 20:03:17 +0200 From: Sheldon Hearn To: "Crist J. Clark" Cc: security@freebsd.org Subject: Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc In-reply-to: Your message of "Wed, 29 May 2002 13:38:52 MST." <20020529133852.B12700@blossom.cjclark.org> Date: Thu, 30 May 2002 20:03:17 +0200 Message-ID: <6952.1022781797@axl.seasidesoftware.co.za> Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 29 May 2002 13:38:52 MST, "Crist J. Clark" wrote: > Ick. How about, > > # /usr/bin/printf "/.X11-unix/s/^/#/\nw\nq\n" | /bin/ed -s /etc/rc > > Next time? Or even a pathless printf, so that you benefit if your shell has a builtin printf. As far as I know, the only times paths should be specified in the bootstrapping scripts is when they're used to launch some deamons that need to re-exec themselves later and use argv[0] to accomplish this. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message