diff options
author | Mark Wielaard <mark@klomp.org> | 2022-04-24 17:48:39 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-04-24 17:50:38 +0200 |
commit | 6398e94e9ac9a170da088768198d4a2b6e989e19 (patch) | |
tree | 7ed7dbb19e3af979f5307543f900379575529930 | |
parent | 3bcf887340fd47d0d8a3671cc45abe2989d1fd6c (diff) | |
download | elfutils-6398e94e9ac9a170da088768198d4a2b6e989e19.tar.gz |
elfclassify: Fix --no-stdin flag
The no-stdin option was using the wrong flag, classify_flag_stdin,
instead of classify_flag_no_stdin.
https://sourceware.org/bugzilla/show_bug.cgi?id=28724
Signed-off-by: Mark Wielaard <mark@klomp.org>
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/elfclassify.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6ef81862..fd87ce2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2022-04-24 Mark Wielaard <mark@klomp.org> + + * elfclassify.c (main): Use classify_flag_no_stdin for no-std in options. + 2022-04-19 Mark Wielaard <mark@klomp.org> * readelf.c (get_dyn_ents): Define dyn_mem outside the while loop. diff --git a/src/elfclassify.c b/src/elfclassify.c index 2f70b29a..25fe9a65 100644 --- a/src/elfclassify.c +++ b/src/elfclassify.c @@ -946,7 +946,7 @@ separated by newlines"), 2 }, { "stdin0", classify_flag_stdin0, NULL, 0, N_("Also read file names to process from standard input, \ separated by ASCII NUL bytes"), 2 }, - { "no-stdin", classify_flag_stdin, NULL, 0, + { "no-stdin", classify_flag_no_stdin, NULL, 0, N_("Do not read files from standard input (default)"), 2 }, { "compressed", 'z', NULL, 0, N_("Try to open compressed files or embedded (kernel) ELF images"), |