Setup doesn't set right permissions
Thrall, Bryan
bryan.thrall@flightsafety.com
Fri Aug 24 14:30:00 GMT 2007
Brian Dessent wrote on Thursday, August 23, 2007 6:43 PM:
> Sorry but setup doesn't know anything about permissions. If I recall
> correctly it does set a DACL when it initializes but other than that
> it does not do anything with the file modes stored in the tar file
> when creating files. So this isn't expected to work and never has.
> You can fixup any files or directories that have specific mode
> requirements with a postinstall script that calls chmod.
>
> There is a fair amount of code in the Cygwin DLL to do this mapping
> between POSIX modes and NT ACLs, and it would all have to be
> duplicated or reimplemented in setup because setup has to be self
> contained and can't use any Cygwin code. And then there would be two
> places to maintain any changes.
D'oh! I already knew that, but I forgot to check how setup handled
permissions when I finally came across the problem. Sorry for the noise.
--
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com
More information about the Cygwin-apps
mailing list