Package: quotatool
Version: 1.4.9-2
Severity: normal

Accordingly to the manpage, the quotatool command can be invoked in three
different ways... 

  quotatool [-u uid | -g gid] [-b | -i] [-r | -l NUM | -q NUM] [-nvR] [-d] fs
  quotatool -u | -g  -t TIME [-nv] fs
  quotatool [-hV]

Now, it actually accepts the "-t" option together other options, like those
used to change the user or group quotas. For example...

  quotatool -t 1d -u someuser -b -q 250Mb -l 300Mb /home

This command actually works as expected. However, this command doesn't (it
changes the quotas for the "root" user!)...

  quotatool -u someuser -b -q 250Mb -l 300Mb -t 1d  /home

This happens because the "-u" (and "-g") option has a different meaning when it 
appears
before "-t". In this case "-u" doesn't accept any parameters but quotatool
just ignores this silently.

Either quotatool enforces the syntax specified in the manpage (a command with
"-t" and user/group quota changing options is invalid and dies right away),
or it dies with something like "unknown option 'someuser'" in the case
specified above.

Like it is now, it is both confusing and wrong.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages quotatool depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries

Versions of packages quotatool recommends:
ii  quota                         3.14-4     implementation of the disk quota s

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to