| Ticket UUID: | 7cd721e9ead7eb5c76ffcd0bd84bed9c395c6e16 | ||
| Title: | mkdtemp() unavailable on Solaris 2.8 | ||
| Type: | Bug | Created on: | 2020-06-19 05:50:10 |
| Submitter: | andy | Assigned to: | nobody |
| Subsystem: | 37. File System | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2020-06-19 06:19:56 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | 8.7a3 | ||
| Description: | ||||
TclpCreateTemporaryDirectory() calls mkdtemp() which is unavailable on Solaris 2.8. For platforms lacking this function, can we fall back to a (possibly racy) alternative rather than fail to link? | ||||
| User Comments: | ||||
andy (claiming to be Andy Goth) added on 2020-06-19 06:19:56:
I see the Windows version of TclpCreateTemporaryDirectory() already does what's needed: pick a random name, try to create it, loop until success. Maybe this logic can be factored out for use by the Unix version when mkdtemp() is missing. | ||||
