On Feb 29, 2004, at 11:04 AM, Frankie wrote:
I regret that I am not a
C programmer and don't know how to amend sourcecode of vpopmail or
qmailadmin.

Thanks for pointing out this bug.


For those on the vchkpw list, it was pointed out that vsetuserquota doesn't write the quota to maildirsize in the correct format. This patch fixes that problem (and hopefully the new line won't word-wrap).

diff -u -r1.2 vsetuserquota.c
--- vsetuserquota.c     20 Oct 2003 18:59:57 -0000      1.2
+++ vsetuserquota.c     1 Mar 2004 05:35:05 -0000
@@ -144,12 +144,7 @@

/* Grab the quota */
if ( optind < argc ) {
- snprintf(Quota, sizeof(Quota), "%s", argv[optind]);
- for(c=0;Quota[c]!=0;++c){
- if ( islower((int)Quota[c]) ) {
- Quota[c] = (char)toupper((int)Quota[c]);
- }
- }
+ snprintf(Quota, sizeof(Quota), "%s", format_maildirquota(argv[optind]));
++optind;
}


I'm checking this into CVS now.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Reply via email to