Catch STDERR from /etc/security.local (not just STDOUT). trunk
authorkim <kim@NetBSD.org>
Fri, 09 Apr 2004 17:33:35 +0000
branchtrunk
changeset 125980 3ed943f94165
parent 125979 7b7d4197902c
child 125981 2f850760443b
Catch STDERR from /etc/security.local (not just STDOUT).
etc/security
--- a/etc/security	Fri Apr 09 17:01:03 2004 +0000
+++ b/etc/security	Fri Apr 09 17:33:35 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: security,v 1.89 2004/04/02 13:13:47 jmmv Exp $
+#	$NetBSD: security,v 1.90 2004/04/09 17:33:35 kim Exp $
 #	from: @(#)security	8.1 (Berkeley) 6/9/93
 #
 
@@ -904,7 +904,7 @@
 fi
 
 if [ -f /etc/security.local ]; then
-	. /etc/security.local > $OUTPUT
+	. /etc/security.local > $OUTPUT 2>&1
 	if [ -s $OUTPUT ] ; then
 		printf "\nRunning /etc/security.local:\n"
 		cat $OUTPUT