Opened 5 years ago

Closed 4 years ago

#10430 closed bug (fixed)

openTempFileWithDefaultPermissions has the wrong location name on failure

Reported by: NeilMitchell Owned by:
Priority: normal Milestone: 7.10.2
Component: libraries/base Version: 7.10.1
Keywords: Cc: hvr, ekmett, ndmitchell@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


In System/IO.hs I see two typos:

openTempFileWithDefaultPermissions :: FilePath -> String
                                   -> IO (FilePath, Handle)
openTempFileWithDefaultPermissions tmp_dir template
    = openTempFile' "openBinaryTempFile" tmp_dir template False 0o666

It should read openTempFile' "openTempFileWithDefaultPermssions". The function openBinaryTempFileWithDefaultPermissions has the same bug.

Change History (5)

comment:1 Changed 5 years ago by NeilMitchell

Cc: ndmitchell@… added

comment:2 Changed 5 years ago by Reid Barton <rwbarton@…>

In 25d1a716395e349736994759d1fcbb3721f3ee9f/ghc:

Fix error messages from open(Binary)TempFileWithDefaultPermissions

Fixes Trac #10430.

comment:3 Changed 5 years ago by rwbarton

Status: newmerge

Thanks. I just pushed this change directly since it's quite trivial. Austin, please merge if desired.

comment:4 Changed 5 years ago by thoughtpolice

Milestone: 7.10.2

Easy fix, moving to 7.10.2.

comment:5 Changed 4 years ago by thoughtpolice

Resolution: fixed
Status: mergeclosed

Merged to ghc-7.10.

Note: See TracTickets for help on using tickets.