X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Message-ID: <4B13F7D6.1000204@cornell.edu> Date: Mon, 30 Nov 2009 11:50:30 -0500 From: Ken Brown User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67 References: <4B13CB3A DOT 7070909 AT alice DOT it> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 11/30/2009 11:23 AM, Robert Pendell wrote: >> Ken Brown wrote: >>> 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. > I guess a side question here is if TMP does not exist then should it > be defaulting to the system wide TEMP variable, the one defined in > .bashrc for the user or should it even be created at all? I posted an > strace and it shows TEMP set to /tmp but patch still uses TMP instead > and since TMP doesn't exist it looks like cygwin sets TMP to the > system wide one by default. Are you sure TMP doesn't exist? On my system TMP is set in the Windows environment. Cygwin just takes that variable and converts the filename to Unix format. So unless you unset TMP somewhere in your startup files, TMP will exist (at least in XP; I don't have experience with other systems). > P.S. - On linux (when I tested) TEMP, TMP, and TMPDIR were not set and > patch defaulted to /tmp. That's precisely why I suggested unsetting TEMP and TMP in /etc/profile. Then things should work as in linux. 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