File permissions of /tmp files

Peter Simons simons at cryp.to
Wed Oct 29 02:47:16 EST 2003


Hi,

it appears that ghc (and ghci) create temporary files in
/tmp during the un-lit phase, at least. It would be nice, if
ghc would ...

 - create those files with read/write permission for the
   owner only, 0600.

 - set-up some atexit(3) job, or whatever, to make sure
   those files _are_ deleted when ghc exits.

It might even be possible to create the file and then
remove(3) it, right away. The file handle will continue to
work, but there is never an entry in the file system.

Just a suggestion. :-)

Peter



More information about the Glasgow-haskell-users mailing list