From 3d5911537b8c9507edbf5a99b7f2dbbb2653fa87 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 16 Nov 2022 21:54:25 -0600 Subject: [PATCH] Rename local variable in ftp_syslog This change of terms aligns with RFC3164. --- gatekeeper.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index 84c343c..d9f7f72 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -409,7 +409,7 @@ gatekeeper itself and these functions may change without notice. } sub ftp_syslog { - my $priority = shift; + my $severity = shift; my $message = shift; our $Log_Tag; our $Phase; @@ -429,7 +429,7 @@ sub ftp_syslog { # when using non-valid syslog priorities. # That's why we run it inside an eval, with errors printed to STDERR, # complete with stack backtrace. - eval { syslog($priority, $message) }; + eval { syslog($severity, $message) }; cluck($@) if $@; } -- 2.25.1