Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] milter-greylist-2.0.2 crash

2006-01-25 by Emmanuel Dreyfus

On Wed, Jan 25, 2006 at 04:16:37PM +0200, Eugene Filatov wrote:
> Jan 25 16:08:39 snark milter-greylist: [ID 525239 mail.error] cannot write
> dumpfile "/var/milter-greylist/greylist.db-XXJeaaLX": No such file or directory
> Jan 25 16:08:39 snark milter-greylist: [ID 421540 mail.info] Final
> database dump: no change to dump
> Jan 25 16:08:39 snark milter-greylist: [ID 649572 mail.info] Exiting
 
Oh then it does not crash, it quits. Forget the gdb story.

Here is the revelant code section:
        if ((dumpfd = mkstemp(newdumpfile)) == -1) {
                syslog(LOG_ERR, "mkstemp(\"%s\") failed: %s",
                    newdumpfile, strerror(errno));
                exit(EX_OSERR);
        }  
 
        if ((dump = fdopen(dumpfd, "w")) == NULL) {
                syslog(LOG_ERR, "cannot write dumpfile \"%s\": %s",
                    newdumpfile, strerror(errno));
                exit(EX_OSERR);
        } 

You say the file exists:
> -rw-------   1 root     other          0 Jan 25 16:08 greylist.db-XXJeaaLX

It sounds like an OS-speicifc mystery. Can you remind me what OS you use?

-- 
Emmanuel Dreyfus
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.