Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1928856
Title: fsCmd list - no socket as parameter?
Type: Bug Version: None
Submitter: nobody Created on: 2008-03-29 18:02:41
Subsystem: ftpd Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-11-21 08:42:17
Resolution: Fixed Closed By: serhiy.storchaka
    Closed on: 2026-11-21 08:42:16
Description:
When the fsCmd-proc is called with "list" or "nlist" as command, the third parameter should be the socket for the answer. But when i print the args-var the values are only:

/ {list {}}

there's no socket for the Answer!
User Comments: serhiy.storchaka added on 2026-11-21 08:42:17:

In passive mode, LIST/NLST called fsCmd at once, before the client had connected to the data port, so the channel argument was empty. [23fe924d90] (bug [3357765fff], ftpd 1.2.6, tcllib 1.14) makes these commands wait for the data connection. Verified: ftpd 1.2.5 passes "" and fails when LIST arrives before the connect, trunk passes the data channel.