From: pawelz Date: Sun, 25 Apr 2010 22:05:41 +0000 (+0000) Subject: - handle single-char usernames correctly with scale=LARGE X-Git-Tag: auto/th/dspam-3_8_0-2~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdspam.git;a=commitdiff_plain;h=f66390051326f36a7082ee00d44578774f3bcc50 - handle single-char usernames correctly with scale=LARGE - note: I'm not filing bug report in despam project, because I have not checked if it is fixed in 3.9.0 yet Changed files: dspam-single-char-usernames.patch -> 1.1 --- diff --git a/dspam-single-char-usernames.patch b/dspam-single-char-usernames.patch new file mode 100644 index 0000000..9bc51ba --- /dev/null +++ b/dspam-single-char-usernames.patch @@ -0,0 +1,22 @@ +--- dspam-3.8.0/webui/cgi-bin/dspam.cgi~ 2010-04-26 00:01:00.000000000 +0200 ++++ dspam-3.8.0/webui/cgi-bin/dspam.cgi 2010-04-26 00:01:47.000000000 +0200 +@@ -1552,7 +1552,7 @@ + $PATH = "$CONFIG{'DSPAM_HOME'}/data/" . substr($USER, 0, 1) . + "/". substr($USER, 1, 1) . "/$USER/$USER"; + } else { +- $PATH = "$CONFIG{'DSPAM_HOME'}/data/$USER/$USER"; ++ $PATH = "$CONFIG{'DSPAM_HOME'}/data/$USER/$USER/$USER"; + } + return $PATH; + } +--- dspam-3.8.0/webui/cgi-bin/admin.cgi~ 2010-04-26 00:01:00.000000000 +0200 ++++ dspam-3.8.0/webui/cgi-bin/admin.cgi 2010-04-26 00:02:09.000000000 +0200 +@@ -683,7 +683,7 @@ + $USER = "$CONFIG{'DSPAM_HOME'}/data/" . substr($UN, 0, 1) . + "/". substr($UN, 1, 1) . "/$UN/$UN"; + } else { +- $USER = "$CONFIG{'DSPAM_HOME'}/data/$UN/$UN"; ++ $USER = "$CONFIG{'DSPAM_HOME'}/data/$UN/$UN/$UN"; + } + } +