http://llvm.org/bugs/show_bug.cgi?id=7404

           Summary: Unix Path::makeUnique always generates the same name
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: System Library
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=5050)
 --> (http://llvm.org/bugs/attachment.cgi?id=5050)
Rewrite of unique name generation

The fallback when neither mkstemp nor mktemp is available had several bugs in
it, leading to non-unique temporary filenames being generated. The attached
patch greatly improves the situation, allowing parallel builds (make -j4) to
succeed, even though the code still isn't safe security-wise.

Note: getpid() is used and assumed to be available (hopefully this doesn't
cause trouble on some really obscure Unix systems).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to