SA Bugzilla – Bug 1521
spamassin -r fails pyzor report
Last modified: 2003-04-06 16:38:55 UTC
When reporting spam using spamassassin -r, the pyzor update fails when trying to create /usr/sbin/.pyzor as a home directory. It turns out that spamassassin is clearing out the environment as part of its untainting and the HOME directory which pyzor needs is gone. I fixed this as follows: *** blib/script/spamassassin Thu Feb 20 21:16:18 2003 --- /usr/bin/spamassassin Sat Feb 22 08:11:27 2003 *************** *** 161,166 **** --- 161,167 ---- PREFIX => $PREFIX, DEF_RULES_DIR => $DEF_RULES_DIR, LOCAL_RULES_DIR => $LOCAL_RULES_DIR, + home_dir_for_helpers => (getpwuid($>))[7], }); # set debug levels, if any specified (only useful for this command-line
is this still a problem with 2.53?
*** Bug 1738 has been marked as a duplicate of this bug. ***
if this really is a problem, we should fix for 2.54
This isn't happening in 2.52. I haven't upgraded to 2.53 yet.
Pyzor reporting appears to work fine for me after upgrading to 2.54.