commit:     4e9fab3118078f618aceaa5f50131cc709701e84
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 20 22:30:10 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Feb 20 22:30:46 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=4e9fab31

qcheck: add a short option for --skip-protected

Reported-by: Ben Kohler <bkohler <AT> gmail.com>
URL: https://bugs.gentoo.org/505122

---
 qcheck.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qcheck.c b/qcheck.c
index 0a98398..86d7aa6 100644
--- a/qcheck.c
+++ b/qcheck.c
@@ -8,7 +8,7 @@
 
 #ifdef APPLET_qcheck
 
-#define QCHECK_FLAGS "aes:uABHTp" COMMON_FLAGS
+#define QCHECK_FLAGS "aes:uABHTPp" COMMON_FLAGS
 static struct option const qcheck_long_opts[] = {
        {"all",            no_argument, NULL, 'a'},
        {"exact",          no_argument, NULL, 'e'},
@@ -18,7 +18,7 @@ static struct option const qcheck_long_opts[] = {
        {"badonly",        no_argument, NULL, 'B'},
        {"nohash",         no_argument, NULL, 'H'},
        {"nomtime",        no_argument, NULL, 'T'},
-       {"skip-protected", no_argument, NULL, 128},
+       {"skip-protected", no_argument, NULL, 'P'},
        {"prelink",        no_argument, NULL, 'p'},
        COMMON_LONG_OPTS
 };
@@ -392,7 +392,7 @@ int qcheck_main(int argc, char **argv)
                case 'B': state.bad_only = true; break;
                case 'H': state.chk_hash = false; break;
                case 'T': state.chk_mtime = false; break;
-               case 128: state.chk_config_protect = false; break;
+               case 'P': state.chk_config_protect = false; break;
                case 'p': state.undo_prelink = prelink_available(); break;
                }
        }

Reply via email to