[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug found
Ok, mailbox crashes when it calls 'gethostid' in dotlock.c.
Here is a gethostid for HP-UX to be inserted in dotlock.c:
#ifdef hpux
/*
* From: dd@mv.us.adobe.com (David DiGiacomo)
*/
#define _INCLUDE_HPUX_SOURCE
#include <sys/utsname.h>
int gethostid()
{
struct utsname uts;
if (uname(&uts) < 0)
return 0;
return atoi(uts.idnumber);
}
#endif
Maybe syscall(SYS_GETHOSTID) should work aswell.
Now the next problem which zmailer has since at least 2.99.25:
If someone sends a postscript file of about 50K in length or longer
then zmailer adds some bytes with HP-UX (not with Solaris!).
This is a diff:
goldt@hprbg1 [61]% (~): diff /tmp/la1 sfb12.dfg.ps
434c434
< FFFFFFFFFEFFFFFFFFE28317CB031>90 D<00FFF0000003FFFE00000F803F80000FC00F
---
> FFFFFFFFFEFFFFFFFFFE28317CB031>90 D<00FFF0000003FFFE00000F803F80000FC00F
/tmp/la1 is what zmailer delivered to me. In the router dir and in the
queue the mail is still fine, so i think mailbox mangles the mail.
Sven
--
The only limits are in your mind !
- Follow-Ups:
- Re: bug found
- From: Matti Aarnio <mea@nic.funet.fi> (Tue, 18 Feb 1997 19:55:15 +0200)