Commit b24aeee3 authored by Leigh Stoller's avatar Leigh Stoller

Check STDOUT for isatty() instead of STDIN. Something is not playing

by the rules, not sure what yet.
parent 79439d1f
......@@ -203,7 +203,7 @@ sub AuditStart($;$$)
# "what was done" message to the audit list, and CC it to tbops if it
# exits with an error. But the log is the responsibility of the user.
#
if (!$daemon && isatty(STDIN)) {
if (!$daemon && isatty(STDOUT)) {
$auditing = 1;
$ENV{'TBAUDITON'} = "$SCRIPTNAME:$USERNAME";
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment