https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6313

--- Comment #8 from Mark Martinec <[email protected]> 2010-03-02 14:56:07 
UTC ---
I see now: when -Q and -H are both specified (regardless of -x),
the directory needs to be created.

So instead of the original:
  if (! -d $spam_conf_dir) {

and instead of my proposed patch:
  if ($opt{'user-config'} && ! -d $spam_conf_dir) {

the test should actually be:
  if (($opt{'user-config'} || defined $opt{'home_dir_for_helpers'})
      && ! -d $spam_conf_dir) {

(note: the $opt{'user-config'} part is redundant, due to the same
test already applied before calling handle_user_setuid_with_sql,
but can't hurt for clarity)

I'll attach a modified patch.

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to