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-17-2005, 07:21 PM   #1
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default []'s in filenames don't work right

For some reason any use of []'s in a directory name totally breaks cwd/ls (maybe others) if use specify a path. I can't remember if []'s in a filename also breaks retr's with a path or not...

Dir setup
/:
[TestDir]
Dir1

/Dir1:
[Dir2]
Dir3


this works from root:
cwd [TestDir]
cwd /Dir1
cwd /Dir1/Dir3

these don't
cwd /[TestDir]
cwd /Dir1/[Dir2]

replace cwd with list -al and the same thing is true.


Just so I wasn't crazy I tried serv-u and it works file. Clearly ioftpd is doing something funky with the []'s. I have no scripts setup on cwd/list but I figured TCL's use of ['s is a likely culprit...

I should specify how it doesn't work. cwd returns an error saying the directory doesn't exist, but list is worse because ioftpd returns a successful return code, but sends 0 bytes for the directory listing itself!
Yil is offline   Reply With Quote
Old 09-18-2005, 05:11 AM   #2
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Small oops. list -al IS broken and sends 0 bytes no matter what's in the directory as I said but I must have goofed the cwd test somehow... I was using existing dirs on my ftp and their names were more complex so I must have entered it wrong and ioftpd was probably right in saying it failed hehe.

Anyway, I realized there is no way cwd with a directory path with []'s could fail because I've used flash/etc to download from dirs and seen it work... hence the double check. list -al with a path containing either [ or ] fails in my perl script and in flash. Sorry for the confusion, just test with list...

Oh, and any chance of supporting ls -alR ?
Yil is offline   Reply With Quote
Old 09-18-2005, 07:57 AM   #3
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by Yil
Oh, and any chance of supporting ls -alR ?
the chances are that we'll do ls -alR before SSCN (fxp over ssl), at least!
_panic_ is offline   Reply With Quote
Reply

Tags
cwd, directory, returns, [testdir], []s

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 01:01 PM.

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