Solutionunvalidated
Replace the mktemp()+mkdir() fallback with an atomic directory creation primitive (mkdtemp() or equivalent). — If portability requires a fallback. Tension: mktemp()+mkdir() fallback. Outcome: Also ensure the created directory is validated before use.
b546bae6-5889-4a11-b88e-1cdbe43e955f
Replace the mktemp()+mkdir() fallback with an atomic directory creation primitive (mkdtemp() or equivalent). — If portability requires a fallback. Tension: mktemp()+mkdir() fallback. Outcome: Also ensure the created directory is validated before use.