kre notes that "echo -n" is superfluous when creating a zero length file
This commit is contained in:
parent
2b27ac7a99
commit
96612eac97
@ -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 @@ accounting_start()
|
||||
{
|
||||
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}
|
||||
|
@ -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 @@ extra_commands="reload"
|
||||
mountd_precmd()
|
||||
{
|
||||
rm -f /var/db/mountdtab
|
||||
( umask 022 ; echo -n > /var/db/mountdtab )
|
||||
( umask 022 ; > /var/db/mountdtab )
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user