http://bugzilla.spamassassin.org/show_bug.cgi?id=4366

           Summary: spamc broken on Solaris and BSD type machines
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: spamc/spamd
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


The combine_args method is doing something wrong on Solaris and BSD.  Here is an
example:
combine_args[0]: ../spamc/spamc
combine_args[1]: -F
combine_args[2]: data/spamc_blank.cf
combine_args[3]: -d
combine_args[4]: localhost
combine_args[5]: -p
combine_args[6]: 34578
combine_args[7]: -c
read_args[0]: ../spamc/spamc
read_args[1]: ../spamc/spamc
read_args[2]: -F
read_args[3]: data/spamc_blank.cf
read_args[4]: -d
read_args[5]: localhosu
read_args[6]: -p
read_args[7]: 34578
read_args[8]: -c


The combine_args lines are what combine_args is adding combo_argv from argv,
then the read_args lines are what is passed into read_args as argv and parsed by
getopt.

Notice the localhost entry which gets changed to localhosu.  Removing that
option still doesn't work correctly, I believe it's due to the double entry of
../spamc/spamc (see slot 0 and 1 in the read_args entry.  I made it work by
skipping the add of argv[0] in combine_args and removing -d localhost from
SATest.pm.  Obviously that's not a permanent solution.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to