public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/28725] New: eu-ar -x -N COUNT uses instance [COUNT+1] of name
@ 2021-12-25 12:19 panxh_ran at 163 dot com
  2021-12-25 12:20 ` [Bug tools/28725] " panxh_ran at 163 dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: panxh_ran at 163 dot com @ 2021-12-25 12:19 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=28725

            Bug ID: 28725
           Summary: eu-ar -x -N COUNT uses instance [COUNT+1] of name
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tools
          Assignee: unassigned at sourceware dot org
          Reporter: panxh_ran at 163 dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 13880
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13880&action=edit
the result of eu-ar -x -N COUNT

eu-ar -x -N COUNT should use instance [COUNT] of name, 
but it uses instance [COUNT+1] of name incorrectly.
Usage: -N  Use instance [COUNT] of name.

The attachments show the differences of command result between "eu-ar -x -N
COUNT"
and "ar -x -N COUNT".

do_oper_extract() in src/ar.c
Is it should be instance-- at Line522?
 522           if (res != NULL && (instance < 0 || instance-- == 0)
 523               && !found[(char **) res->data - argv])
 524             found[(char **) res->data - argv] = do_extract = true;
 525         }

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-14 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-25 12:19 [Bug tools/28725] New: eu-ar -x -N COUNT uses instance [COUNT+1] of name panxh_ran at 163 dot com
2021-12-25 12:20 ` [Bug tools/28725] " panxh_ran at 163 dot com
2022-08-04  0:05 ` panxh_ran at 163 dot com
2022-08-28 15:59 ` mark at klomp dot org
2022-09-14 19:00 ` mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).