delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/24/01:35:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=DWtsuTxzthmuD6ZJ
KxfoCElpnTnfF8usNDNRqLwLysiJoZcJOu6Q28wChGmoh3LtS6k7V51qUW4Zf79m
DgVzvxzhMtEpZmn4ha/TZun48vU10ARbzwbSij31VKPtEg0Q3Rj7H39CZthrpwAz
InTkWklbghMuOpXFSuxVO8RbnaI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=JzPOHOtJX05A4r/N6/iRmp
0EsT8=; b=JQZAxxMQeuNozXvfm+Sgu+JCwFxqFmEV+ZPR9XRdU/CHCxiGgB3xr4
ItdegcdOYVdntDbFrAexAak7S9n5zJ6eou90zyLdFUI35FhBIE8vMup2+6K0lMnV
z5Q4hGp8nGeisOrcFYUpDJFXfvC9ek8J8+n8oVd0LqD/bG9DuVF7s=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f177.google.com
X-Received: by 10.194.113.1 with SMTP id iu1mr45312512wjb.158.1443072909948; Wed, 23 Sep 2015 22:35:09 -0700 (PDT)
Subject: Re: Issues encountered with new Cygwin version
To: cygwin AT cygwin DOT com
References: <BLU182-W10FB6B21A2AEC90F71470FD4450 AT phx DOT gbl>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <56038B88.8010300@gmail.com>
Date: Thu, 24 Sep 2015 07:35:04 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <BLU182-W10FB6B21A2AEC90F71470FD4450@phx.gbl>
X-IsSubscribed: yes

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 AT hostname ~]$ touch newfile.txt
> [user AT 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 AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019