Ansgar Burchardt wrote:

        Finally, I dared to strace atd and its subprocesses, and found the
        difference between sendmail run for root and non-root user.
        Being run from atd, sendmail process does not have open stdout and
        stderr file descriptors. And courier's sendmail, being run for ordinary
        user, checks that (fcntl(..., F_GETFD)) and reopens them to /dev/null.
        For root user, it does not check/reopen them, so FDs 1 and 2 get
        reused for other file descriptors (probably, in dlopen, as a socket
        to connect to nscd service, and so on), and certain hell ensues as a
        result.

Can you try the patch below?  A dsc and deb (for amd64) is available
from http://www.43-1.org/~ansgar/at/ as well.

        Great, now it works as I long wanted.
        I applied your patch only to atd.c in Ubuntu 9.10 'at' package, rebuilt
        and reinstalled it, and now my root jobs output gets mailed to me.
        Thank you.



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to