From owner-cvs-src@FreeBSD.ORG Tue Mar 1 22:59:48 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B35D16A4D6; Tue, 1 Mar 2005 22:59:48 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9207D43D48; Tue, 1 Mar 2005 22:59:47 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j21MxlLo003507; Tue, 1 Mar 2005 14:59:47 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j21Mxlmx003506; Tue, 1 Mar 2005 14:59:47 -0800 Date: Tue, 1 Mar 2005 14:59:47 -0800 From: Brooks Davis To: Pawel Jakub Dawidek Message-ID: <20050301225947.GA30024@odin.ac.hmc.edu> References: <200503012208.j21M8Fi4002801@repoman.freebsd.org> <20050301224647.GY9291@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <20050301224647.GY9291@darkness.comp.waw.pl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: cvs-src@FreeBSD.org cc: Brooks Davis cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d var X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 22:59:48 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 01, 2005 at 11:46:47PM +0100, Pawel Jakub Dawidek wrote: > On Tue, Mar 01, 2005 at 10:08:15PM +0000, Brooks Davis wrote: > +> brooks 2005-03-01 22:08:15 UTC > +>=20 > +> FreeBSD src repository > +>=20 > +> Modified files: > +> etc/rc.d var=20 > +> Log: > +> - Remove the dependency of /usr/bin/touch by using "cp /dev/null " > +> to create /var/log/lastlog. >=20 > Isn't 'echo -n > ' a better choice? Perhaps. I copied the example in etc/rc.d/cleanvar (except without the lack of newlines). Sam suggested the even simpler ">target" which would also work. I'm assuming you have a /bin since the line after the cp is chmod so I'm not really worried. echo -n does have the advantage of being slightly clearer. I'm not sure if this is worth changing or not. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCJPPiXY6L6fI4GtQRAhJ3AKCIQrsfkW0EMk2iiVCOqHml4ZvxjQCgizPd zLNFtr/I8mje/FH8aOK2TIY= =Hjke -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--