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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=v3NImdQ95K/Vn6tBepwffBF71YAJtISjYZMc0qFQNj2 4YOkJY8pF12m90lUg1LrHqG3SlQR0v44GElXBZnUj+zdXzNo7Tdy3Ske9GwsN6QF tEBLB8vduGiHAgOwHxP5XKieogqdFQ3Y83sm8Rg9dVuoTEK6x01jrMz/JN6tW0Rs = 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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=IpLBZI0KWrCF93UrVESgGP98GO8=; b=QdMClpgE6J7tIgQ7S OWwmGJH2XgOBu1hTuBpB0u777zGwReAYvQF2W5aWIl83vSqFl3AUObDVcQZBxSXE YK82sTDOsk2AT0WVjDn/aqsXnkML2Fd5Hu6+dYs+Kd0++M9/DZTG+/i7eIo6HYOc TS1ns0UTWZZncvmLExn8LMiSx0= 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=-0.7 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-08.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-04.arcor-online.net 3mm4xF27jRz9v8L From: Achim Gratz <Stromeko AT nexgo DOT de> To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1 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> Date: Tue, 04 Aug 2015 20:53:52 +0200 In-Reply-To: <895515CC-6BB7-41E7-AEA5-30FBBE071153@etr-usa.com> (Warren Young's message of "Tue, 4 Aug 2015 12:14:37 -0600") Message-ID: <87wpxac2bj.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t74IsFjV020384 Warren Young writes: > 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. Cygwin DLL already does some conversions of the Windows environment. It could (hypothetically) do a more thorough job and/or sanitize the environment to make the result more POSIX conformant. Try defining some Wnidows environment variables that have illegal POSIX names, for instance. > 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. That's the part that involves me changing base-files. >> 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. That's why I offered to ignore the issue. That also needs nothing to be done by me, which is an added benefit. :-) Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra -- 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