Bug 1818 - spamd failes to create ~/.spamassassin in handle_user_setuid_with_sql
Summary: spamd failes to create ~/.spamassassin in handle_user_setuid_with_sql
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 2.53
Hardware: All All
: P5 major
Target Milestone: 2.54
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-23 11:53 UTC by Kelsey Cummings
Modified: 2003-05-09 09:28 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
Corrected patch patch None Kelsey Cummings [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Kelsey Cummings 2003-04-23 11:53:47 UTC
Summary says it all.  Can't believe I missed this when I added this before.
Comment 1 Kelsey Cummings 2003-04-23 11:57:01 UTC
--- 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 });
Comment 2 Kelsey Cummings 2003-04-23 13:12:54 UTC
Created attachment 918 [details]
Corrected patch
Comment 3 Theo Van Dinter 2003-05-09 16:07:18 UTC
please don't change the bug milestones.
Comment 4 Theo Van Dinter 2003-05-09 17:23:47 UTC
OKAY: looks fine for me.  moving to 2.54.
Comment 5 Justin Mason 2003-05-09 17:25:32 UTC
OKAY: taking kgc's word for it ;)
Comment 6 Theo Van Dinter 2003-05-09 17:28:46 UTC
applied to stable and head.
Comment 7 Kelsey Cummings 2003-05-09 17:58:36 UTC
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