Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d kre notes that "echo -n" is superfluous when creati...



details:   https://anonhg.NetBSD.org/src/rev/073aef514952
branches:  trunk
changeset: 509224:073aef514952
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Apr 29 23:57:25 2001 +0000

description:
kre notes that "echo -n" is superfluous when creating a zero length file

diffstat:

 etc/rc.d/accounting |  4 ++--
 etc/rc.d/mountd     |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 5911d13440de -r 073aef514952 etc/rc.d/accounting
--- a/etc/rc.d/accounting       Sun Apr 29 22:44:31 2001 +0000
+++ b/etc/rc.d/accounting       Sun Apr 29 23:57:25 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: accounting,v 1.5 2001/04/25 23:20:15 lukem Exp $
+# $NetBSD: accounting,v 1.6 2001/04/29 23:57:25 lukem Exp $
 #
 
 # PROVIDE: accounting
@@ -19,7 +19,7 @@
 {
        if [ ! -f ${accounting_file} ]; then
                echo "Creating accounting file ${accounting_file}"
-               ( umask 022 ; echo -n > ${accounting_file} )
+               ( umask 022 ; > ${accounting_file} )
        fi
        echo "Turning on accounting."
        ${accounting_command} ${accounting_file}
diff -r 5911d13440de -r 073aef514952 etc/rc.d/mountd
--- a/etc/rc.d/mountd   Sun Apr 29 22:44:31 2001 +0000
+++ b/etc/rc.d/mountd   Sun Apr 29 23:57:25 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: mountd,v 1.8 2001/04/25 23:23:37 lukem Exp $
+# $NetBSD: mountd,v 1.9 2001/04/29 23:57:25 lukem Exp $
 #
 
 # PROVIDE: mountd
@@ -18,7 +18,7 @@
 mountd_precmd()
 {
        rm -f /var/db/mountdtab
-       ( umask 022 ; echo -n > /var/db/mountdtab )
+       ( umask 022 ; > /var/db/mountdtab )
        return 0
 }
 



Home | Main Index | Thread Index | Old Index