Mo Feb 01 2010 10:22:40 EST von dothebart @ Uncensored

hm, I've seem to have broken the attachment downloading?



whew. this is strange.

I can trace citserver doing...

CC->download_fp = tmpfile();
if (CC->download_fp == NULL)
return;

rv = fwrite(content, length, 1, CC->download_fp);
fflush(CC->download_fp);
rewind(CC->download_fp);

OpenCmdResult(filename, cbtype);

and... in file_ops cmd_read()

fseek(CC->download_fp, start_pos, 0);
if (fread(buf, 1, bytes, CC->download_fp) == 1) {
will go to

cprintf("%d %s\n", ERROR, strerror(errno));
and print "success"

WTF?

Reply via email to