]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elfclassify: Fix --no-stdin flag
authorMark Wielaard <mark@klomp.org>
Sun, 24 Apr 2022 15:48:39 +0000 (17:48 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 24 Apr 2022 15:50:38 +0000 (17:50 +0200)
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>
src/ChangeLog
src/elfclassify.c

index 6ef81862db2cacfa452bcdc12367df6e2c215380..fd87ce2f54192a05a87e6d6eb16d1a9b026b3bcd 100644 (file)
@@ -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.
index 2f70b29a58b8cb81871aeba4384cb8e2ee50bcaa..25fe9a652ea4df46473ce852a4b9ee0f6088feef 100644 (file)
@@ -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"),