]> git.pld-linux.org Git - packages/dspam.git/commitdiff
- handle single-char usernames correctly with scale=LARGE
authorpawelz <pawelz@pld-linux.org>
Sun, 25 Apr 2010 22:05:41 +0000 (22:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- 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

dspam-single-char-usernames.patch [new file with mode: 0644]

diff --git a/dspam-single-char-usernames.patch b/dspam-single-char-usernames.patch
new file mode 100644 (file)
index 0000000..9bc51ba
--- /dev/null
@@ -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";
+     }
+   }
This page took 0.079392 seconds and 4 git commands to generate.