cabal permissions problems

Simon Marlow simonmar at microsoft.com
Wed Jul 20 06:12:39 EDT 2005


On 25 June 2005 23:47, Frederik Eaton wrote:

> I think I remember running into something like this a long time ago
> and mentioning it to someone, is it fixed in a new version of Cabal?
> I'm using ghc 6.4...
> 
> The problem is that executable files are installed to be only
> executable by user:
> 
> $ ls -al built/bin/
> total 3644
> drwxrwxr-x  2 frederik frederik    4096 2005-06-25 15:35 .
> drwxrwxr-x  3 frederik frederik    4096 2005-06-24 19:57 ..
> -rwxrw-r--  1 frederik frederik 1183668 2005-06-25 15:40 fcq
> -rwxrw-r--  1 frederik frederik 2528637 2005-06-25 15:40 fcq-www.cgi
> $ umask
> 002
> 
> I haven't experienced this with any other installation procedures,
> only Cabal.

This is a problem with GHC's System.Directory.copyFile, which arises
because

   getPermissions f1 >>= setPermissions f2

doesn't copy the full permissions on Unix.  I've fixed copyFile.

Cheers,
	Simon


More information about the Libraries mailing list