[GHC] #13489: openTempFile fails when the template parameter contain a path separator
GHC
ghc-devs at haskell.org
Mon Mar 27 16:09:10 UTC 2017
#13489: openTempFile fails when the template parameter contain a path separator
-------------------------------------+-------------------------------------
Reporter: harendra | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Poor/confusing | Unknown/Multiple
error message | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
I don't think we want to create any directories in `openTempFile`.
Afterall, it would then be unclear whether the user should cleanup the
parent directories or just the file.
Consequently, I think the right solution here is to simply disallow path
separators in the template: if the user wants to specify a directory
component then they can provide it in the first argument.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13489#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list