From: Jacob Bachmeyer Date: Sat, 15 Oct 2022 02:33:22 +0000 (-0500) Subject: Explicitly return empty list from scan_incoming if no files found X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8996e64e1de82191e8504d75e78f1ea047761b7b;p=gatekeeper.git Explicitly return empty list from scan_incoming if no files found --- 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