From 8996e64e1de82191e8504d75e78f1ea047761b7b Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 14 Oct 2022 21:33:22 -0500 Subject: [PATCH] Explicitly return empty list from scan_incoming if no files found --- gatekeeper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index 00ebe04..fcabbe5 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -869,7 +869,7 @@ sub scan_incoming { or ftp_die("FATAL: closedir($incoming_dir) failed: $!"); # No possible files found, so return before we call lsof - return @ret unless %possible; + return () unless %possible; # Determine if any of those possible files are open. We find the # possible files before running lsof (partly) to avoid a race -- 2.25.1