[Haskell-cafe] setPermissions bug?

David Roundy droundy at abridgegame.org
Wed Feb 18 07:53:33 EST 2004


On Wed, Feb 18, 2004 at 12:31:34PM -0000, Simon Marlow wrote:
> > I presume that this is a bug in setPermissions?
> 
> Yes, it's a bug.  However, since getPermissions/setPermissions doesn't
> really give you enough control in Unix, I suggest you use the functions
> available from System.Posix instead (fileStatus, fileMode, setFileMode
> etc.).

Well, in my case all I want to do is to copy permissions from one file to
another, so get/setPermissions would have been fine.  But yeah, I've
already switched to using setFileMode etc.
-- 
David Roundy
http://www.abridgegame.org


More information about the Haskell-Cafe mailing list