Bug#402900: quotatool: specifying -u user -t time gives unexpected results (should give an error)

2007-06-09 Thread Bas Zoetekouw
forwarded 402900 johanATekenbergDOTse
thanks

Hi!

I'm not sure if this is just a problem in the manual or an actually bug
in the command line parsing.  I've sent the problem upstream, so
hopefully it'll get fixed soon.

Bas.

-- 
Kind regards,
++
| Bas Zoetekouw  | GPG key: 0644fab7 |
|| Fingerprint: c1f5 f24c d514 3fec 8bf6 |
| [EMAIL PROTECTED] |  a2b1 2bae e41f 0644 fab7 |
++ 


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



Bug#402900: quotatool: specifying -u user -t time gives unexpected results (should give an error)

2006-12-13 Thread Francisco Castanheiro
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  libc62.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]