Bug#700632: ftpquota --files-download=0 is incorrect

Hilmar Preusse hille42 at web.de
Wed Dec 14 22:18:45 UTC 2016


retitle -1 "quota for --bytes-upload, --files-upload etc. should support value zero."
severity -1 wishlist
stop

On 15.02.13 Mathieu Malaterre (malat at debian.org) wrote:

Hi Mathieu,

> As per documentation:
> http://www.proftpd.org/docs/utils/ftpquota.html
> 
> ...
>   --Fd                 Specifies the limit of the number of files that may be
>   --files-download     downloaded.  Defaults to -1 (unlimited).
> ...
> 

> $ sudo rm ftpquota.limittab
> $ sudo ftpquota --create-table --type=limit
> $ sudo ftpquota --add-record --type=limit --name=foobar --quota-type=user --files-download=0
> $ sudo ftpquota --show-records --type=limit
> -------------------------------------------
>   Name: foobar
>   Quota Type: User
>   Per Session: False
>   Limit Type: Hard
>     Uploaded bytes: unlimited
>     Downloaded bytes: unlimited
>     Transferred bytes:  unlimited
>     Uploaded files: unlimited
>     Downloaded files: unlimited
>     Transferred files:  unlimited
> 
> It does not seems possible to state: no download of any file possible!
> 
At least the command line output clearly states that this is the
case:

sid:/tmp# ftpquota --add-record --type=limit --name=foobar
--quota-type=user --files-download=0
ftpquota: notice: download files value '0' means 'unlimited'
sid:/tmp# ftpquota --add-record --type=limit --name=foobar1
--quota-type=user --files-upload=0
ftpquota: notice: upload files value '0' means 'unlimited'

And yes, it is no not understandable why there are two methods to
specify the value "unlimited" (0 and -1).  I guess we have to forward
to upstream.  Anyway I assume this to be FAD and lower severity to
wishlist.

Hilmar
-- 
sigfault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-proftpd-maintainers/attachments/20161214/cc996ef5/attachment-0001.sig>


More information about the Pkg-proftpd-maintainers mailing list