Go Back   FlashFXP Forums > > > >

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 Display Modes
Old 09-09-2004, 09:38 PM   #1
neoxed
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

Tags
client, iputs, realpath, whobug, [client

Thread Tools
Display Modes 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

Forum Jump


All times are GMT -5. The time now is 02:51 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)