[GHC] #13489: openTempFile fails when the template parameter contain a path separator

GHC ghc-devs at haskell.org
Mon Mar 27 15:18:25 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:                 |           Version:  8.0.1
  libraries/base                     |
           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:
-------------------------------------+-------------------------------------
 If the template string contains a path separator, for example "a/b" then
 openTempFile just fails with a message which does not even indicate what
 the problem might be. It displays the following message:

 {{{
 mod: /tmp/: openTempFile: does not exist (No such file or directory)
 }}}

 It can either provide a better error message, saying that path separator
 is not allowed or if it is legal to allow a path separator then it should
 create that path in the temp dir.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13489>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list