delorie.com/archives/browse.cgi | search |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; q=dns; s=default; b=yjvOGxrw6AJP5gQ7 | |
rCgag0UesknySt1hQAJLHm1hMjFmpDRwNhai/2rSn1guTCO8lDNDOrpkwI0c3QtK | |
zbVP5ckvPY693HzTS/Bt2s5oEGEjeDB0b9JwMzZ4wpdm+D6W9oQomFdjJ3Pg2r+c | |
vhgSdru+LZjBOeIo37HSlxgTJf0= | |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; s=default; bh=TGY3xrn64/WtnoWaMQCcFX | |
p6R9g=; b=vIGD7AKteBHgxN4qaTkC+f3Hx4j/p7+TtxLKNEsm54/ONTrpoZfvzl | |
wl9JShJapaQlpDTuuZa4ZOo/NelpR3sWDMfrejDy4bSR4X+AAoYD0smB0wRVkhdB | |
gAUIEMjQOqPiBlQ7NoPaVPyGole3bmSI/bpez14xQsw7kRiYqU/cs= | |
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=4.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
X-HELO: | smtp.ht-systems.ru |
Date: | Wed, 5 Aug 2015 19:41:14 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <1324339149.20150805194114@yandex.ru> |
To: | Corinna Vinschen <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com |
Subject: | Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1 |
In-Reply-To: | <20150805075435.GP17917@calimero.vinschen.de> |
References: | <announce DOT 20150803131950 DOT GA18878 AT calimero DOT vinschen DOT de> <55BFB64C DOT 1010802 AT towo DOT net> <20150803192940 DOT GA19315 AT calimero DOT vinschen DOT de> <loom DOT 20150804T094839-714 AT post DOT gmane DOT org> <895515CC-6BB7-41E7-AEA5-30FBBE071153 AT etr-usa DOT com> <87wpxac2bj DOT fsf AT Rainer DOT invalid> <20150805075435 DOT GP17917 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Greetings, Corinna Vinschen! > The problem the fix was *supposed* to fix (but it didn't) was to disallow > incoming $HOME values which are non-POSIX or non-absolute paths. These > $HOME values should be disregarded. > So the idea was: > set HOME=foo <- ignored, set HOME from passwd DB entry > set HOME=C:/foo <- same > set HOME=//foo/bar <- same > set HOME=/foo/bar <- valid, taken > Right now, when started from a non-Cygwin process, Cygwin takes the > value of $HOME and simply calls the Win32->POSIX conversion function. > It does so for a long time, but is that right? Especially if %HOME% is > a non-absolute == relative path, the resulting POSIX value of $HOME > depends on the current directory when starting Cygwin. > This sounds like a terrible idea to me. Agree. > Together with cases like https://cygwin.com/ml/cygwin/2015-07/msg00344.html, > and the fact that $HOME has no meaning in native Windows (HOMEPATH/HOMEDRIVE > instead) I'm inclined to think that any incoming $HOME should make sense > from a POSIX POV, otherwise we take the value from the passwd DB as defined > by /etc/nsswitch.conf. > Does anybody have a *good* reason *not* to change this? For me, it wouldn't change a thing. My %HOME% is pointed to %USERPROFILE%, so does the nsswitch.conf do the same for Cygwin. Either way the $HOME is pulled from will point to the same place. >> That's why I offered to ignore the issue. That also needs nothing to be >> done by me, which is an added benefit. :-) > That may be the way to go as soon as Cygwin is doing the right thing :} :) Do The Right Thing(tm)! -- With best regards, Andrey Repin Wednesday, August 5, 2015 19:34:27 Sorry for my terrible english... -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |