From: Jason Rumney Date: Sun, 20 Jan 2008 23:17:25 +0000 (+0000) Subject: (CYGWIN) [USING_SH]: Disable mapping of file permissions to NTFS ACLs. X-Git-Tag: emacs-pretest-22.1.90~59 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf32108ec4fa2c2ce99071d97ccdbfe29e6b0921;p=emacs.git (CYGWIN) [USING_SH]: Disable mapping of file permissions to NTFS ACLs. --- diff --git a/nt/ChangeLog b/nt/ChangeLog index 033a73b51d0..88c633c8c39 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,8 @@ +2008-01-20 Jason Rumney + + * gmake.defs (CYGWIN) [USING_SH]: Disable mapping of file + permissions to NTFS ACLs. + 2007-10-20 Eli Zaretskii * configure.bat (docflags, doldflags): New variables. diff --git a/nt/gmake.defs b/nt/gmake.defs index e782c203e76..6bc5e247886 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs @@ -99,6 +99,16 @@ sh_output := $(shell echo foo") ifeq "$(sh_output)" "" NEW_CYGWIN = 1 endif + +# By default, newer versions of Cygwin mess with NTFS ACLs in an +# attempt to emulate traditional posix file permissions. This can +# cause bad effects, such as .exe files that are missing the +# FILE_EXECUTE/FILE_GENERIC_EXECUTE permissions when they are created +# with Cygwin commands that don't expect to be creating executable +# files. Then when we later use a non-Cygwin program to create the +# real .exe, the previous Cygwin defined ACL sticks. +CYGWIN=nontsec +export CYGWIN endif ALL_DEPS = $^