Thursday 06 March 2003 20.17 skrev Brian Kolaci:
> Yes, this was discovered over a month ago (I posted a patch
> way back when), but it appears that it didn't get included.
>
> I'm actually working on updating qmailadmin & vqadmin to
> use the vlimits API and the maildir++ quotas functions.
> I'll send a patch as soon as its ready.
>

Thank you Brian, looking forward to see this very soon.

>
>   > I found a bug,
>   > if you set a quota for a user
>   > the qmailadmin convert from MB to bytes with .00 at the end.
>   >
>   >
>   > -----------------------------------
>   >
>   > File util.c
>   >
>   >
>   > int quota_to_bytes(char returnval[], char *quota) {
>   >     char *tmpstr;
>   >     double tmp;
>   >
>   >     if (quota == NULL) { return 1; }
>   >     if (tmp = atol(quota)) { tmp *= 1048576; }
>   >     else { return 1; }
>   >     sprintf(returnval, "%-2.2lf", tmp);                  <<<
>   > -----------
>
> bug
>
>   >     return 0;
>   > }
>   >
>   >
>   > -------------------------------------------
>   >
>   >     sprintf(returnval, "%-2.0lf", tmp);                  <<<
>   > ------------
>
> correction
>
>   >                                 ^^^^^^

-- 
Regards // Oden Eriksson, Deserve-IT.com

Reply via email to