On Tue, Sep 24, 2002 at 03:43:29PM -0700, Cheryl L. Southard wrote:
> And when I change my /etc/procmailrc file to use "spamassassin -P" instead
> of spamc, then it works fine and uses my user_prefs file.   I guess
> something is strange with spamc/spamd.

The answer, I believe, is that when running "spamassassin", it uses the
effective UID (aka: euid), while "spamc" calls the "getuid()" system
call (which would return root) which then passes that on to spamd.
(this all assumes that procmail does a seteuid, which it may or may not
do, but would explain the behavior you've seen).

IMNSHO, spamc ought to call geteuid() instead since that's the more
correct thing to do in all situations.   Hmmm, have to write up a patch.

-- 
Randomly Generated Tagline:
"I see!  So the cockpits are going to be filled with drunks with guns ...
 Co-pilot, switch seats with me!  I can't get another DUI!  and if the
 cop gets nosy, plug him!"       - Lewis Black, The Daily Show 2002.07.17

Attachment: msg08085/pgp00000.pgp
Description: PGP signature

Reply via email to