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: Issues encountered with new Cygwin version


On 23/09/2015 01:04, Walter L. wrote:
Hi,

I've just performed a fresh install of the latest (2.2.1) Cygwin on 64-bit Windows 7 and noticed 2 issues with the new version that I'd like to verify whether or not they are bugs:


2) The 'touch' command creates a file with the executable bit set

[user@hostname ~]$ touch newfile.txt
[user@hostname ~]$ ls -l newfile.txt
-rwxrwx---+ 1 user Domain Users 0 Sep 22 17:21 newfile.txt

I am fully aware that Windows programs (e.g. Eclipse and Windows Explorer) will create files with the executable bit set due to ACL and NTFS permissions. However, if I 'touch' a file inside an earlier version of Cygwin the file would be created without the executable bit set (i.e. 644). To be honest, I can't tell if this is caused by the new version of Cygwin or a Windows Update.
[user@hostname ~]$ uname -a
CYGWIN_NT-6.1-WOW hostname 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin

This is my first time posting, so please let me know if I need to provide additional information, or if I should split this into 2 separate topics.

Thanks,
~WL
  		 	   		

It likely depends on the inherited permissions from the directory

$ cd /tmp
 /tmp
 $ touch prova

$ ls -l prova
-rw-r--r-- 1 marco Administrators 0 Sep 24 07:27 prova

 $ getfacl prova
# file: prova
# owner: marco
# group: Administrators
user::rw-
group::r--
other:r--

$ cd /cygdrive/e/temp

$ touch prova

$ ls -l prova
-rw-rwxr--+ 1 marco Administrators 0 Sep 24 07:27 prova*

$ getfacl prova
# file: prova
# owner: marco
# group: Administrators
user::rw-
group::r--
group:SYSTEM:rwx
mask:rwx
other:r--

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


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