PDA

View Full Version : [Bug] iTCL chattr reading


tuff
04-10-2004, 03:57 PM
vfs chattr is either not writing or reading more than 2047 characters to each availble entery

global pwd
set text "random-2048-character-string-here"
vfs chattr "[resolve pwd $pwd]" 100 "$text"
iputs "WROTE: [string length $text]"
set readback [vfs chattr "[resolve pwd $pwd]" 100]
iputs "READ BACK: [string length $readback]"

WROTE: 2048
READ BACK: 2047

is this intentional? or another bug?

Mouton
04-10-2004, 06:02 PM
did u check header files to see the max size of a chattr ?

tuff
04-10-2004, 06:54 PM
couldnt find anything in the header files, i take it you mean the source/include stuff.

but then, im prolly blind

tuff
04-11-2004, 01:05 PM
i decided to have another look at this problem

ive uploaded `test.sfv`

226-WROTE: 3060
226-READ BACK: 2047

but, when i examine the.ioFTPD file for the directory, all
the entries that it says it wrote, are there.

so it looks like a read problem