Ticket #2610 (closed task: fixed)

Opened 5 years ago

Last modified 4 years ago

File permission-related proposals

Reported by: igloo Owned by:
Priority: normal Milestone: 6.12.1
Component: libraries/base Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Once 6.10 is out of the way, we should file some permission-related proposals.

openTempFile and openBinaryTempFile mask the file permissions of the file they create with 0o600. However, we would like to use it for implementing things like writeFileAtomic, in which case we want the default file permissions to be used.

System.Directory has an internal copyPermissions function, but it should be exported. This is not the same as getPermissions s >>= setPermissions d as the Permissions type that the latter uses doesn't hold all the permissions info that we want.

Even better would be to make the Permissions type abstract, so that it /can/ contain all the info we want. Functions in the unix and Win32 packages would be able to do more with this type than the portable interface.

Change History

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 4 years ago by igloo

  • milestone changed from 6.12 branch to 6.12.1

Changed 4 years ago by duncan

See also the short discussion thread starting here:  http://haskell.org/pipermail/libraries/2009-February/011334.html

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

These are now #3393, #3392 and #3394 respectively.

Note: See TracTickets for help on using tickets.