SA Bugzilla – Bug 1818
spamd failes to create ~/.spamassassin in handle_user_setuid_with_sql
Last modified: 2003-05-09 09:28:46 UTC
Summary says it all. Can't believe I missed this when I added this before.
--- spamd.raw.orig Wed Apr 23 11:45:42 2003 +++ spamd.raw Wed Apr 23 11:50:31 2003 @@ -852,6 +852,20 @@ logmsg "info: setuid to $username succeeded, reading scores from SQL."; } } + + my $spam_conf_dir = $dir . '/.spamassassin'; #needed for AWL, Bayes, etc. + if ( ! -d $spam_dir ) + { + if ( mkdir $spam_dir ) + { + logmsg "info: created $spam_dir for $username."; + } + else + { + logmsg "info: failed to create $spam_dir for $username."; + } + } + $spamtest->load_scoreonly_sql ($username); $spamtest->signal_user_changed ({ username => $username });
Created attachment 918 [details] Corrected patch
please don't change the bug milestones.
OKAY: looks fine for me. moving to 2.54.
OKAY: taking kgc's word for it ;)
applied to stable and head.
Subject: Re: [SAdev] spamd failes to create ~/.spamassassin in handle_user_setuid_with_sql Thanks All, and sorry for petting the wrong way. On Fri, May 09, 2003 at 05:28:46PM -0700, bugzilla-daemon@hughes-family.org wrote: > http://www.hughes-family.org/bugzilla/show_bug.cgi?id=1818 > > felicity@kluge.net changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|ASSIGNED |RESOLVED > Resolution| |FIXED > Target Milestone|2.60 |2.54 > > > > ------- Additional Comments From felicity@kluge.net 2003-05-09 17:28 ------- > applied to stable and head. > > > > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Spamassassin-devel mailing list > Spamassassin-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/spamassassin-devel