Hello

There is such lines in (for example) imapd.c:
        SetMainSigHandler();

        if (no_daemonize) {
                get_config(&config);
                StartCliServer(&config);
                config_free();
                g_mime_shutdown();
                return 0;
        }

        server_daemonize(&config);

        /* We write the pidFile after daemonize because
         * we may actually be a child of the original process. */
        pidfile_create(pidFile, getpid());

        get_config(&config);
        do {

and when no_daemonize is not set, 
server_daemonize is called with empty config variable

As result I have file with name '$' in / (root of FS)

Moving     get_config(&config);     before     server_daemonize(&config); 
solve this problem.

The same in lmtpd.c and timsieved.c

-- 
Oleg Lapshin

Reply via email to