tisdagen den 2 december 2003 19.46 skrev Marc Schneider: > > It has to be debian specific because the patch I have has these changes, > > get the current one here: > > > > http://www.shupp.org/ > > > > Or rather the fixed one in the latest vpopmail tarball. > > I got the patch from shupp.org. It fixes all the puts() ==> substdio_puts() > apart from the two in the pop_top() function. I just wander if the > pop_top() function is different in the debian release...
This is what this (note: "pop3_top") function looks like in the "qmail-pop3d.c" source using vanilla qmail and the maildir++ patch: void pop3_top(arg) char *arg; { int i; unsigned long limit; int fd; i = msgno(arg); if (i == -1) return; arg += scan_ulong(arg,&limit); while (*arg == ' ') ++arg; if (scan_ulong(arg,&limit)) ++limit; else limit = 0; fd = open_read(m[i].fn); if (fd == -1) { err_nosuch(); return; } okay(); substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf)); blast(&ssmsg,limit); close(fd); } Maybe I'm just tired..., I don't see any put() here...