fix /etc/security stderr redirection. trunk
authorgrant <grant@NetBSD.org>
Wed, 25 Dec 2002 02:41:03 +0000
branchtrunk
changeset 106435 a5f3725e05b5
parent 106434 61638d65d145
child 106436 db302877933f
fix /etc/security stderr redirection. from rad@twig.com in PR bin/19553.
etc/daily
--- a/etc/daily	Wed Dec 25 00:58:00 2002 +0000
+++ b/etc/daily	Wed Dec 25 02:41:03 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.46 2002/01/27 22:08:50 bouyer Exp $
+#	$NetBSD: daily,v 1.47 2002/12/25 02:41:03 grant Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -226,7 +226,7 @@
 
 if checkyesno run_security; then
 	SECOUT="$DAILYDIR/sec"
-	sh /etc/security 2>&1 > "$SECOUT"
+	sh /etc/security > "$SECOUT" 2>&1
 	if [ ! -s "$SECOUT" ]; then
 		echo "Nothing to report on $date" > "$SECOUT"
 	fi