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:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; q=dns; s=default; b=MgFUNuVylMS3dchPSTCSqEP1c8jJ
	/pIV3dzXPJNhcJDA9kIrWylQ48JgaDJqt45v4nvnfp6hNY0XEtuScmCLIsD0byG1
	2SC1DDHvlXnNzWEDroWWQjMo5O+5hN3QIdlBKdzV3br+TPP+X9ul+6i5LIX9lPq7
	OkP5rxzl9LwXbrk=
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:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; s=default; bh=PwY39Zc/QEIcfXW83KPGmRrqHyE=; b=eD
	9iq1Bb6a5i+GmQguPD5kolpOhX75qyOgMizxKg6RSr3sxo4Cne7d1a+YYxPEOkNj
	VZQR4/u/VgoeAbIaivlIWmOdZF3UUxlC+aDNdsP9XrIzkNmyE+SPj0PLUM9GhiHL
	trZXO7eucQtf6J9Rehy387vF8E4FKChXkcD4I6baA=
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.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: etr-usa.com
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\))
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1
From: Warren Young <wyml@etr-usa.com>
In-Reply-To: <loom.20150804T094839-714@post.gmane.org>
Date: Tue, 4 Aug 2015 12:14:37 -0600
Message-Id: <895515CC-6BB7-41E7-AEA5-30FBBE071153@etr-usa.com>
References: <announce.20150803131950.GA18878@calimero.vinschen.de> <55BFB64C.1010802@towo.net> <20150803192940.GA19315@calimero.vinschen.de> <loom.20150804T094839-714@post.gmane.org>
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t74IEl4B017511

On Aug 4, 2015, at 1:50 AM, Achim Gratz <Stromeko@nexgo.de> wrote:
> 
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
>> It's ignored as $HOME in the Cygwin DLL.  It's apparently not ignored in
>> the base-files package, but that's another problem.
> 
> ...to which the possible solutions are:
> 
> 1. Not hand a botched HOME environment variable to Cygwin processes.

When you speak of this in terms of processes, I think you mean that the Cygwin DLL would need to filter the environment, which sounds heavy-handed.

If you mean that /etc/profile and such will do the filtering, that could work.

> 2. Do the same checks as the Cygwin DLL and fall back to some more sensible
> default if HOME is botched.

This isn’t a second option, it’s an implementation design for option 1.

> 3. Ignore the issue.

Here’s an interesting experiment to try on your non-Cygwin POSIX boxes:

    $ HOME=/dfjkshkds bash -l
    $ echo $HOME

Guess what it prints.

Hint: It isn’t the second-to-last field in /etc/passwd. :)




Spoiler: Apparently Cygwin is already doing the standard thing.
--
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


