Bug 8136 - ubiupdatevol: '-t' parameter not usable (invalid command line parsing)
Summary: ubiupdatevol: '-t' parameter not usable (invalid command line parsing)
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.21.x
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-28 06:52 UTC by Marko v. Oppen
Modified: 2015-05-28 06:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko v. Oppen 2015-05-28 06:52:32 UTC
ubiupdatevol should take the '-t' option without an additional argument like the help message states correctly. But when using it in that matter busybox gives an error message.

root@OpenWrt:/# ubiupdatevol /dev/ubi1_0 -t
ubiupdatevol: option requires an argument -- 't'
BusyBox v1.22.1 (2015-05-27 14:11:07 CEST) multi-call binary.

Usage: ubiupdatevol UBI_DEVICE [-t | [-s SIZE] IMG_FILE]

Update UBI volume

        -t      Truncate to zero size
        -s SIZE Size in bytes to resize to


root@OpenWrt:/# ubiupdatevol -t /dev/ubi1_0
BusyBox v1.22.1 (2015-05-27 14:11:07 CEST) multi-call binary.

Usage: ubiupdatevol UBI_DEVICE [-t | [-s SIZE] IMG_FILE]

Update UBI volume

        -t      Truncate to zero size
        -s SIZE Size in bytes to resize to