Skip to content

Commit e827ca3

Browse files
committed
flthdr: have -P imply -p
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>
1 parent a5c48a4 commit e827ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flthdr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ main(int argc, char *argv[])
335335
while ((c = getopt(argc, argv, "hpPdzZrRuUkKs:o:")) != EOF) {
336336
switch (c) {
337337
case 'p': print = 1; break;
338-
case 'P': print_relocs = 1; break;
338+
case 'P': print = print_relocs = 1; break;
339339
case 'z': docompress = 1; break;
340340
case 'd': docompress = 2; break;
341341
case 'Z': docompress = -1; break;

0 commit comments

Comments
 (0)