http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4827
Summary: M::SA::find_existing_path() returns last path if none
exist
Product: Spamassassin
Version: 3.1.1
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
While trying to track down a user's issue off of the mailing list, I found out
that no matter what the default
rules directory was supposed to be, "spamassassin -D" always reported
/usr/share/spamassassin. Further
debugging found that if none of the standard directories existed, or if
permissions were such that the
standard directories weren't accessable, /usr/share/spamassassin was chosen by
default.
I'd like to change the behavior so that if none of the paths are accessible
undef is returned, and then for
anything calling find_existing_path(), we check for that and throw a warning
that the directory wasn't
found. Ideally I'd like spamassassin/spamd to throw an error and quit, but
that requires a lot more
changes. At least with this small change, reading the debug output won't be so
confusing.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.