diff options
author | 2015-02-20 17:30:10 -0500 | |
---|---|---|
committer | 2015-02-20 17:30:46 -0500 | |
commit | 4e9fab3118078f618aceaa5f50131cc709701e84 (patch) | |
tree | 50b885684b29cc6d394365ebba229f6f3febc3a0 /qcheck.c | |
parent | qlist: exit non-0 when nothing is matched (diff) | |
download | portage-utils-4e9fab3118078f618aceaa5f50131cc709701e84.tar.gz portage-utils-4e9fab3118078f618aceaa5f50131cc709701e84.tar.bz2 portage-utils-4e9fab3118078f618aceaa5f50131cc709701e84.zip |
qcheck: add a short option for --skip-protected
Reported-by: Ben Kohler <bkohler@gmail.com>
URL: https://bugs.gentoo.org/505122
Diffstat (limited to 'qcheck.c')
-rw-r--r-- | qcheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |