On Thu, Oct 14, 2004 at 08:51:12AM -0700, Sutherland, James wrote:
> OK, that code is in. I recompiled and it's running. I haven't seen any
> output from it yet. However I'm a C nincompoop, so let me know if the
> syntax is correct here:
>
> if ((dumpfd = mkstemp(newdumpfile)) == -1) {
> syslog(LOG_ERR, "mkstemp(\"%s\") failed: %s",
> newdumpfile, strerror(errno));
> syslog(LOG_INFO, "dumpfd = %d", dumpfd);
> exit(EX_OSERR);
> }
I should have been more precise. I meant this:
if ((dumpfd = mkstemp(newdumpfile)) == -1) {
syslog(LOG_ERR, "mkstemp(\"%s\") failed: %s",
newdumpfile, strerror(errno));
exit(EX_OSERR);
}
syslog(LOG_INFO, "dumpfd = %d", dumpfd);
Because, you know, I'm not really interested into learning that dumpfs == -1
when mkstemp fails, I know that without running the code :)
--
Emmanuel Dreyfus
manu@...Message
Re: [milter-greylist] RE: Volume
2004-10-14 by Emmanuel Dreyfus
Attachments
- No local attachments were found for this message.