Explicitly return empty list from scan_incoming if no files found
authorJacob Bachmeyer <jcb@gnu.org>
Sat, 15 Oct 2022 02:33:22 +0000 (21:33 -0500)
committerJacob Bachmeyer <jcb@gnu.org>
Sat, 15 Oct 2022 02:33:22 +0000 (21:33 -0500)
gatekeeper.pl

index 00ebe043f76ac02b5c8701a2a465db4d58d293c2..fcabbe5c1ec4f871156fac590552ebe4cf7cbdb2 100755 (executable)
@@ -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