Send at least . and .. when listing files.

Tentacle does not like empty data. Make sure we always send something
when listing files.

(cherry picked from commit 43a7f75343)
This commit is contained in:
Ramon Novoa 2017-02-23 15:44:15 +01:00
parent bb6ab10fdb
commit a3ab827374
1 changed files with 0 additions and 1 deletions

View File

@ -1168,7 +1168,6 @@ sub send_file_list {
# List files.
while (my $file = readdir ($dh)) {
next if ($file =~ /[$t_invalid_chars]/); # Only list files valid for Tentacle.
next if (-d $file); # Skip directories.
$data .= "$file\n";
}
closedir $dh;