Hello,
I am testing 2006c1 for a new deployment and I noticed imapd was
crashing if I tried copying a message into empty mbox mailboxes (as in
zero length). I did some digging around and I am either doing something
very wrong or else this case needs to be handled differently. This is
the first location where I detected a crash:
unix.c file, unix_copy function:
if (!tstream->rdonly) {
((UNIXLOCAL *) tstream->local)->dirty = T;
}
when the mailbox is zero length tstream is just &unixproto (which itself
is ={&unixdriver}) and therefore tstream->local is NULL - hence the
crash. I can test for that in the above if statement but it crashes
later on again. This time in unix_close where again it tries to
reference local. Even after testing for NULL there it will still crash
because mail_close_full wants to do fs_give on &unixproto and that is
not going to work and now we are going over my head...
Any hints? Help? Please?
Thanks!
Josko P.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw