Skip to content

Commit

Permalink
flthdr: have -P imply -p
Browse files Browse the repository at this point in the history
Trying to print relocs with only -P doesn't work as relocs are
shown only when -p is specified.  Rather than silently exit 0,
have -P imply -p.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
vapier committed Jan 29, 2023
1 parent a5c48a4 commit e827ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flthdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ main(int argc, char *argv[])
while ((c = getopt(argc, argv, "hpPdzZrRuUkKs:o:")) != EOF) {
switch (c) {
case 'p': print = 1; break;
case 'P': print_relocs = 1; break;
case 'P': print = print_relocs = 1; break;
case 'z': docompress = 1; break;
case 'd': docompress = 2; break;
case 'Z': docompress = -1; break;
Expand Down

0 comments on commit e827ca3

Please sign in to comment.