This is the mail archive of the cygwin 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: Execute bit getting set on created files when it shouldn't


Don Peterson wrote:

> Problem statement:  running a non-cygwin program in a console generate
> files with the execute bit set, even if your umask doesn't allow it.

Why would a non-cygwin process have any concept of 'umask', let alone
respect its setting?  This is entirely a Cygwin mechanism.

This is purely due to NTFS permissions, as most applications do not
specify an ACL when creating a file, they just inherit the ACL of the
directory or its parent, and so on.  If you don't want the execute bit
set, then change the ACL of the filesystem object from which everything
is inheriting.  However, expect this to break most windows programs (or
at least their installers), since the notion of having to explicitly set
the execute permission on binaries does not exist on windows.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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