This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Setup doesn't set right permissions

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]