develooper Front page | perl.qpsmtpd | Postings from June 2005

Re: $ENV{HOME} not correct when run uses setuidgid

Thread Previous
From:
Bob
Date:
June 8, 2005 12:07
Subject:
Re: $ENV{HOME} not correct when run uses setuidgid
Message ID:
42A7436A.4020008@nishanet.com
John Peacock wrote:
> David Sparks wrote:
>> I'm using the high_perf branch ... it doesn't seem to need tcpserver.
>
> I thought of that as my finger hit ENTER... ;-)
>
>>      $spool_dir = $self->config('spool_dir')
>>                 || Qpsmtpd::Utils::tildeexp('~/tmp/');
>>
>>
>> Looking at that snippet it now occurs to me that I should've set
>> spool_dir in a config file somewhere and avoided this altogether.
>
> Yes, create a config/spool_dir file and put the path you want to use 
> in it.  The last term above is intended to be a fallback (which I 
> think should be abandoned in favor of "./tmp" instead).
>
> John
>
Trailing backslash, "./tmp/ , as in the "|| Qp" line?

-Bob


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About