[llvm-bugs] [Bug 39033] New: Replace incorrectly replaces files in thin archives
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 21 03:08:40 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39033
Bug ID: 39033
Summary: Replace incorrectly replaces files in thin archives
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-ar
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: llvm-bugs at lists.llvm.org
This may be caused by the same issue causing bug 38542, but the symptoms are
the opposite: in that bug, replace is not replacing things when it should,
whereas in this one, it is replacing things when it shouldn't, in some cases,
and in other cases, simply doesn't work:
Case 1:
C:\Work\TempWork>touch test.o
C:\Work\TempWork>touch ..\test.o
C:\Work\TempWork>llvm-ar rcT ..\test.a test.o
C:\Work\TempWork>llvm-ar rcT ..\test.a ..\test.o
C:\Work\TempWork>llvm-ar t ..\test.a
llvm-ar.exe: no such file or directory.
<prints help text>
# inspection of archive shows that the archive contains one member,
# with the path '../test.o/' when it should be 'test.o/'
Case 2:
C:\Work\TempWork>touch test.o
C:\Work\TempWork>touch ..\test.o
C:\Work\TempWork>llvm-ar rcT test.a test.o
C:\Work\TempWork>llvm-ar rcT test.a ../test.o
C:\Work\TempWork>llvm-ar t test.a
/../test.o
# should also have a member 'test.o'
# Note that adding the files in the other order works correctly.
I'm not sure if these are the same issue or not. Clearly, something is going
wrong with the path comparison here, just as in bug 38542.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180921/4e1683c9/attachment.html>
More information about the llvm-bugs
mailing list