SunOS 4.1.3 & exim 1.62

Top Page
Delete this message
Reply to this message
Author: welty
Date:  
To: exim-users
Subject: SunOS 4.1.3 & exim 1.62
having successfully installed exim 1.62 on two slackware linux
systems, i'm in the midst of bringing it up on a SunOS 4.1.3 system
with gcc 2.7.2. it was crashing when reading the headers of files
residing in the mail spool. i managed to track it down to an sscanf
in spool_in.c, which plays type casting games that work in some
environments but not others, and got it working properly. diffs are
as follows:

% diff spool_in.c.DIST spool_in.c
186a187
> int o_uid_temp, o_gid_temp;

233,234c234,235
< if (sscanf(big_buffer, "%s %d %d", originator, (int *)(&originator_uid),
< (int *)(&originator_gid)) != 3) goto SPOOL_FORMAT_ERROR;
---
> if (sscanf(big_buffer, "%s %d %d", originator, &o_uid_temp,
> &o_gid_temp) != 3) goto SPOOL_FORMAT_ERROR;

235a237,238
> originator_uid = (uid_t) o_uid_temp;
> originator_gid = (gid_t) o_gid_temp;


cheers,
  richard
-- 
Richard Welty                     welty@???
http://www.inet-solutions.net/~welty/         888-311-INET