[Hackage] #454: file permissions of executable on vista

Hackage trac at galois.com
Tue Jan 13 10:44:53 EST 2009

#454: file permissions of executable on vista
  Reporter:  Toxaris        |        Owner:           
      Type:  defect         |       Status:  new      
  Priority:  normal         |    Milestone:  Cabal-1.6
 Component:  Cabal library  |      Version:  
  Severity:  normal         |   Resolution:           
  Keywords:                 |   Difficulty:  normal   
Ghcversion:  6.10.1         |     Platform:  Windows  
Changes (by duncan):

  * milestone:  => Cabal-1.6


 The problem occurs since we changed the way in which we copy file
 permissions. We used to do it incorrectly using the generic portable code.
 The problem before was that it lost permissions because the generic
 permissions representation is lossy for unix and windows. We now copy them
 all using some FFI magic. Unfortunately for Vista it looks like the
 original .exe gets created such that it cannot be used by anyone other
 than the admin user. So faithfully copying the file permissions means it
 is unusable.

 The right thing to do seems to be to ignore the original permissions and
 install the files with explicitly the right permissions. This means
 distinguishing executable files from non-executable files during install.
 The code to set the permissions will probably have to be OS-specific.
 Basically it should do the equivalent of the traditional unix `install`

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/454#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list