David Sparks wrote:
I'm not a daemontools expert, is this expected?

Yes.  The documentation for setuidgid:

        <http://cr.yp.to/daemontools/setuidgid.html>

doesn't mention anything about resetting ENV variables (and DJB would say something if it did).

I don't like removing the existing code to bias things towards using the getpwuid() call. Rather, I would just set $HOME to whatever you want it to be before you call setuidgid (because the existing ENV values are preserved).

I would also be interested in knowing what code is trying to use $HOME/tmp and how you got qpsmptd to work without using tcpserver (or running the forkserver variant).

John

Reply via email to