Public bug reported:
The vbuf help text and man page indicate that the switches:
-s, -r, -R, -w and -W optionally accept the suffixes k, m and g.
This strongly implies that such prefixes can be used to specify kilobytes,
megabytes, etc.
However any suffixes which are used are ignored.
strtoul does not handle things such as suffixes, and there is no code to handle
the case where a suffix is present, or the argument is otherwise invalid.
Hence a command such as
vbuf -s 1m
is equivalent to
vbuf -s 1
ie. requesting a 1 byte buffer, which is probably not what the user wanted.
It would probably be prudent to remove the text about the k, m and g
suffixes from the help texts/man pages, or to implement the feature.
** Affects: vrb (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1276169
Title:
vbuf: Command line parsing: suffixes k, m and g ignored
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vrb/+bug/1276169/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs