[]'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!
|