diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/system/vyatta_update_syslog.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/system/vyatta_update_syslog.pl b/scripts/system/vyatta_update_syslog.pl index e6a381f7..d02d8be0 100755 --- a/scripts/system/vyatta_update_syslog.pl +++ b/scripts/system/vyatta_update_syslog.pl @@ -36,10 +36,10 @@ if ($exp2 ne "") { } } -open(OUT, ">>$SYSLOG_CONF") or exit 4; if ($update_line ne "") { - print OUT "$update_line"; + open my $out, '>>', $SYSLOG_CONF or exit 4; + print {$out} "$update_line"; + close $out; } -close OUT; exit 0; |