Subject: bin/19553: /etc/daily does not redirect stderr for /etc/security
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rad@twig.com>
List: netbsd-bugs
Date: 12/24/2002 22:30:56
>Number: 19553
>Category: bin
>Synopsis: /etc/daily does not redirect stderr for /etc/security
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 24 14:32:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: rad@twig.com
>Release: NetBSD 1.6K
>Organization:
>Environment:
System: NetBSD margin 1.6K NetBSD 1.6K (MARGIN) #1: Sun Dec 22 06:03:54 UTC 2002 rad@margin:/u0/current/src/sys/arch/sparc64/compile/MARGIN sparc64
Architecture: sparc64
Machine: sparc64
>Description:
When /etc/daily invokes /etc/security, it does not redirect
the stderr output of /etc/security. This error was introduced
in revision 1.28 of /etc/daily
>How-To-Repeat:
put something in /etc/security that prints to stderr
>Fix:
*** daily.orig Sun Sep 8 11:42:52 2002
--- daily Fri Dec 20 16:01:11 2002
***************
*** 226,232 ****
if checkyesno run_security; then
SECOUT="$DAILYDIR/sec"
! sh /etc/security 2>&1 > "$SECOUT"
if [ ! -s "$SECOUT" ]; then
echo "Nothing to report on $date" > "$SECOUT"
fi
--- 226,232 ----
if checkyesno run_security; then
SECOUT="$DAILYDIR/sec"
! sh /etc/security > "$SECOUT" 2>&1
if [ ! -s "$SECOUT" ]; then
echo "Nothing to report on $date" > "$SECOUT"
fi
>Release-Note:
>Audit-Trail:
>Unformatted: