https://bugs.llvm.org/show_bug.cgi?id=49750

            Bug ID: 49750
           Summary: llvm::writeArchive(..) fails when path contains %
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Object
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

If the filesystem path passed to writeArchive(..) contains a `%` it will fail
with "No such directory". I believe this is because sys::fs::createUniquePath()
gets called and replaces all `%` with a random number. It looks like
sys::fs::TempFile::create(Prefix + ".temp-archive-%%%%%%%.a") is common in the
LLVM tree, and `Prefix` is assumed to contain no `%` characters. Not exactly
sure how LLVM wants to resolve this, but my suggestion would be to take
direction from the `mktemp` API.

Downstream bug reported here: https://github.com/rust-lang/rust/issues/79567

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to