summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2017-03-31 14:59:29 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-04-06 21:50:12 +0000
commita4e4cfac9f53609962eb86ff80e4ccba4ecac6b0 (patch)
treec124026b5afd029de0e2a2e47d0fbaa1190b9f2f
parenta733e02fd4d46eff1818081b658a65b5ecdea423 (diff)
downloadchrome-ec-a4e4cfac9f53609962eb86ff80e4ccba4ecac6b0.tar.gz
usb_updater: fix -b option
We want the -b option to be parsed the same way as the -u option, because usb_updater should handle reading the file the same way. This changes binver hasarg to be 0, so that it doesn't eat the filename. BUG=none BRANCH=cr50 TEST=usb_updater --binver $IMAGE Change-Id: I0b868bc5d316e5fb42fc34bc746bbee868d20630 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/465490 Reviewed-by: Aaron Durbin <adurbin@chromium.org> (cherry picked from commit 24fd8060fd27f0306d5d3f91faa09d28ed892772) Reviewed-on: https://chromium-review.googlesource.com/470486
-rw-r--r--extra/usb_updater/usb_updater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/usb_updater.c
index b69ce22567..dda202690d 100644
--- a/extra/usb_updater/usb_updater.c
+++ b/extra/usb_updater/usb_updater.c
@@ -222,7 +222,7 @@ static char *progname;
static char *short_opts = "bcd:fhpsu";
static const struct option long_opts[] = {
/* name hasarg *flag val */
- {"binvers", 1, NULL, 'b'},
+ {"binvers", 0, NULL, 'b'},
{"corrupt", 0, NULL, 'c'},
{"device", 1, NULL, 'd'},
{"fwver", 0, NULL, 'f'},