]> www.infradead.org Git - mtd-utils.git/commit
ubi-utils: Return error code if command line option is unknown
authorDaniel Wagner <daniel.wagner@siemens.com>
Mon, 12 Jun 2017 10:50:54 +0000 (12:50 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 14 Jun 2017 09:00:30 +0000 (11:00 +0200)
commit76e27a79eddb6279bbbc0ec840d66b753a9ba0f3
tree50650ace637991c5845b15a7800e67f7cdece62b
parentb8e785a96f907022466bd383ec6afaa201e5f759
ubi-utils: Return error code if command line option is unknown

The tools in question will quit with an exit code 0 if the command
line option was not recognized. By returning an error code a calling
script has the possibility to distinguish between a real success and
an invalid invocation.

We need to return -1 instead of EXIT_FAILURE to be consistent with the
other exit code places.

Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/fs-tests/integrity/integck.c
ubi-utils/ubiblock.c
ubi-utils/ubiformat.c
ubi-utils/ubimkvol.c
ubi-utils/ubirmvol.c
ubi-utils/ubirsvol.c
ubi-utils/ubiupdatevol.c
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c