bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28917] ar: r does not replace objects specified multiple t


From: vapier at gentoo dot org
Subject: [Bug binutils/28917] ar: r does not replace objects specified multiple times on the command line
Date: Mon, 21 Feb 2022 20:15:15 +0000

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

--- Comment #1 from Mike Frysinger <vapier at gentoo dot org> ---
ugh, this appears to be undocumented behavior.  i can't find anything in the
man page or manual discussing this, and the commit history predates git.

--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1493,8 +1493,7 @@
          /* For compatibility with existing ar programs, we
             permit the same file to be added multiple times.  */
          if (FILENAME_CMP (normalize (*files_to_move, arch),
-                           normalize (bfd_get_filename (current), arch)) == 0
-             && current->arelt_data != NULL)
+                           normalize (bfd_get_filename (current), arch)) == 0)
            {
              bool replaced;
              if (newer_only)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]