X-Recipient: archive-cygwin@delorie.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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=YXF
	wGlIEV7V54TRHCyrRR9oaJ/dR9MTBtnOT0e2PAyWqXtCev0wmei1yOiGuignkXdw
	I4l2h0R+gfCLE6pMIG1NIaZWs4TLBclZqR0X69rxezR4r5LKn8SAOOW0Y7wIlRSn
	nnIEHpCQFG+mhOMxnRVu+H0u1r/YG5JVMwI7KCW8=
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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=PDPMFEtut
	MCTq7W5hq+0nLO/IlU=; b=up7M2Vk0T9f6qvX8UT3KgcsITalBxmufKLZRAXpPU
	G3pbxd76GPAcmFJHTkP48t1lXKmlrepoloAmnkodaqWADvEGIW+QuBPJqH5uWzy6
	2XxbmclrSOLD/yverjzCnf53oYhOeFRt1mopkXDJeTTVmcOACQeuwBMLE3cLi1Nb
	is=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=mitch, guesses, brand, Hx-spam-relays-external:ESMTPA
X-HELO: bumble.birch.relay.mailchannels.net
X-Sender-Id: wwwh|x-authuser|mitch@houseofpain.org
X-Sender-Id: wwwh|x-authuser|mitch@houseofpain.org
X-MC-Relay: Neutral
X-MailChannels-SenderId: wwwh|x-authuser|mitch@houseofpain.org
X-MailChannels-Auth-Id: wwwh
X-MC-Loop-Signature: 1475641898451:1187411010
X-MC-Ingress-Time: 1475641898451
To: cygwin@cygwin.com
From: Mitch Deoudes <mitch@houseofpain.org>
Subject: crazy default permissions
Message-ID: <57F48222.1030605@houseofpain.org>
Date: Wed, 5 Oct 2016 00:31:30 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-AuthUser: mitch@houseofpain.org
X-IsSubscribed: yes

mkdir has suddenly started creating directories with strange 
permissions.  As far as I can tell, it's related to making directories 
nested inside other directories that were also created within cygwin.  
As you create deeper and deeper nestings, the perms get more and more 
screwed up.  It starts at the second level deep, with the setuid flag, 
and eventually gets to the point where you're making directories that 
don't even have user read/write.

I tried this on a brand new installation of the latest cygwin64, with no 
modifications, as of just now:

mitch@calculonjr ~/src/etc/rsync
$ umask
0022

mitch@calculonjr ~/src/etc/rsync
$ mkdir baz

mitch@calculonjr ~/src/etc/rsync
$ ls -ld baz
drwxrwxr-x+ 1 mitch None 0 Oct  5 00:11 baz    <--- first dir looks 
reasonable (but doesn't match umask)

mitch@calculonjr ~/src/etc/rsync
$ mkdir baz/bob

mitch@calculonjr ~/src/etc/rsync
$ ls -l baz
total 0
drwsrwsr-t+ 1 mitch None 0 Oct  5 00:11 bob    <--- second dir is weird

mitch@calculonjr ~/src/etc/rsync
$ mkdir baz/bob/foo

mitch@calculonjr ~/src/etc/rsync
$ ls -l baz/bob/
total 0
d--Srws--T+ 1 mitch None 0 Oct  5 00:12 foo   <--- third dir doesn't 
even have user read/write

mitch@calculonjr ~/src/etc/rsync
$ mkdir baz/bob/foo/blob
mkdir: cannot create directory `baz/bob/foo/blob': Permission denied


Any guesses what might be causing this?  I'm pretty sure this was 
working as of my last update, which was probably several months ago.

mitch


--
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

