Hajimu UMEMOTO wrote:
>
> nsayer> 2. imapd loses its "-s" argument the 2nd time around. I suspect this is a
> nsayer> setproctitle issue, but I haven't tried to prove it. If I do
> nsayer> 'openssl s_client -connect localhost:imaps', then '. logout' and then
> nsayer> very quickly 'telnet localhost imaps', I get a non-SSLed imapd.
> nsayer> Further research shows that when this happens the 'imaps' variable in the
> nsayer> code is set to 0, which can only be because the argv[][] given to
> nsayer> service_main() does not have a "-s" in it.
>
> How about this patch? It seems fixed the problem here. What I've
> done is moving option parsing from service_main() to service_init().
> I believe option parsing is good enough to be done only one time.
> I think there is same problem in pop3d.
>
>
The patch to imapd appears to be both safe and effective. I have
duplicated the problem with pop3d, however, so a similar patch would
need to be applied.