]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elfcompress: -q should not imply --force.
authorMark Wielaard <mjw@redhat.com>
Sat, 13 Feb 2016 18:56:13 +0000 (19:56 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 22 Feb 2016 11:16:01 +0000 (12:16 +0100)
We accidentally set force = true after handling -q and setting verbose--.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/elfcompress.c

index 29782404394db5b4ff27fe06b0e6c8a481eeb19e..debf5a42e375b61982efdbf2a24dc45cf11d5bc9 100644 (file)
@@ -1,3 +1,7 @@
+2016-02-13  Mark Wielaard  <mjw@redhat.com>
+
+       * elfcompress.c (parse_opt): Don't fallthrough after processing -q.
+
 2016-02-12  Mark Wielaard  <mjw@redhat.com>
 
        * strip.c (handle_elf): Correct elf_assert shndxdata check.
index 23939db8bbdcb5c1b30349603f13d9133d90f687..d0ca469c57d93e3eb580f51efa48b391b413f40a 100644 (file)
@@ -1,5 +1,5 @@
 /* Compress or decompress an ELF file.
-   Copyright (C) 2015 Red Hat, Inc.
+   Copyright (C) 2015, 2016 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
@@ -101,6 +101,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)),
 
     case 'q':
       verbose--;
+      break;
 
     case 'f':
       force = true;