cvs commit: src/etc/rc.d var
Ceri Davies
ceri at submonkey.net
Tue Mar 1 23:09:11 GMT 2005
On Tue, Mar 01, 2005 at 02:59:47PM -0800, Brooks Davis wrote:
> 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
> > +>
> > +> FreeBSD src repository
> > +>
> > +> Modified files:
> > +> etc/rc.d var
> > +> Log:
> > +> - Remove the dependency of /usr/bin/touch by using "cp /dev/null <target>"
> > +> to create /var/log/lastlog.
> >
> > Isn't 'echo -n > <target>' 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.
The only difference I can see between the two/three is that both "cp
/dev/null $foo" and "echo -n > $foo" will truncate a pre-existing file,
but in this case even that distinction isn't important.
Ceri
--
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former. -- Einstein (attrib.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050301/94c6c6f3/attachment.bin
More information about the cvs-src
mailing list