]]>

Go Back   FlashFXP Forums > ioFTPD > ioFTPD > ioFTPD beta > Bug Reports

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread
Old 09-09-2004, 09:38 PM   #1
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default [Bug] Strange return value with the client who "REALPATH" field

TCL source:
PHP Code:
## - WhoBug.itcl
##
## Usage:
## [FTP_Custom_Commands]
## whobug = TCL ..\\scripts\\WhoBug.itcl
##

proc WhoBug {} {
    if {[
client who init "CID" "REALPATH"] == 0} {
        while {
1} {
            if {[
set WhoData [client who fetch]] == ""} {break}
            
set ClientID [lindex $WhoData 0]
            
set RealPath [lindex $WhoData 1]
            
iputs "ClientID = \"$ClientID\""
            
iputs "RealPath = \"$RealPath\""
        
}
    } else {
        
iputs "Unable to retrieve online users."
    
}
}

WhoBug 
Output:
Code:
site whobug
200-ClientID = "0"
200-RealPath = "E:/ioFTPD/site
200 Command successful.
When using the "REALPATH" field in the client who command, the return value of client who fetch contains a NULL character in the second list item (for REALPATH).
neoxed is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 05:26 PM.