This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Issues encountered with new Cygwin version
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Sep 2015 07:35:04 +0200
- Subject: Re: Issues encountered with new Cygwin version
- Authentication-results: sourceware.org; auth=none
- References: <BLU182-W10FB6B21A2AEC90F71470FD4450 at phx dot gbl>
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