X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 	tests=AWL,BAYES_00,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4B13BB10.20502@cornell.edu>
Date: Mon, 30 Nov 2009 07:31:12 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67
References: <4B12F891.9000008@alice.it>  <a13b5a590911291522i4cb753e4g2967479f843a66af@mail.gmail.com> <20091130094315.GC16680@calimero.vinschen.de>
In-Reply-To: <20091130094315.GC16680@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
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

On 11/30/2009 4:43 AM, Corinna Vinschen wrote:
> On Nov 29 18:22, Robert Pendell wrote:
>> On Sun, Nov 29, 2009 at 5:41 PM, Angelo Graziosi wrote:
>>> Ken Brown wrote:
>>>> I just confirmed this on my XP SP3 system. I initially got similar
>>>> behavior to what Angelo and Robert reported, but it doesn't happen if I
>>>> export TMPDIR=/tmp before running patch.
>>> Indeed!
>>>
>>> On my system TMPDIR isn't defined by default; instead TMP and TEMP point to
>>> $USERPROFILE/Temp. Setting TMP or TMPDIR to /tmp, works. Instead pointing
>>> TEMP to /tmp does not, i.e. 'patch' creates foo.txt with '+'.
> 
> That explains it all.  The original problem was that inheritable
> permissions from the parent dirs were not inherited when creating files
> in Cygwin.  That was a long-standing problem in Cygwin since it disabled
> POSIX ACL default permissions to be inherited correctly.  Now that works
> correct.  So Angelo's observation is actually good news, rather than yet
> another bug.

Nevertheless, it's somewhat startling to see permissions change as a 
side effect of patching a file.  One simple way to prevent this is to 
unset TMP and TEMP in /etc/profile.  Is there any downside to doing 
this?  A search of the mailing list archives shows that the default 
/etc/profile used to do this.  I didn't dig long enough to find out why 
it changed.

Ken

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

