From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119337 invoked by alias); 4 Aug 2015 18:53:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 119329 invoked by uid 89); 4 Aug 2015 18:53:58 -0000 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 Received: from mail-in-08.arcor-online.net (HELO mail-in-08.arcor-online.net) (151.189.21.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 04 Aug 2015 18:53:56 +0000 Received: from mail-in-02-z2.arcor-online.net (mail-in-19-z2.arcor-online.net [151.189.8.36]) by mx.arcor.de (Postfix) with ESMTP id 3mm4xF3MN6zGV9b for ; Tue, 4 Aug 2015 20:53:53 +0200 (CEST) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 63CEE35FF90 for ; Tue, 4 Aug 2015 20:53:53 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-04.arcor-online.net 3mm4xF27jRz9v8L Received: from Gertrud (p54B47253.dip0.t-ipconnect.de [84.180.114.83]) (Authenticated sender: stromeko@arcor.de) by mail-in-04.arcor-online.net (Postfix) with ESMTPSA id 3mm4xF27jRz9v8L for ; Tue, 4 Aug 2015 20:53:52 +0200 (CEST) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1 References: <55BFB64C.1010802@towo.net> <20150803192940.GA19315@calimero.vinschen.de> <895515CC-6BB7-41E7-AEA5-30FBBE071153@etr-usa.com> Date: Tue, 04 Aug 2015 18:53:00 -0000 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: quoted-printable X-SW-Source: 2015-08/txt/msg00074.txt.bz2 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 sensi= ble >> default if HOME is botched. > > This isn=E2=80=99t a second option, it=E2=80=99s an implementation design= for option 1. That's the part that involves me changing base-files. >> 3. Ignore the issue. > > Here=E2=80=99s an interesting experiment to try on your non-Cygwin POSIX = boxes: > > $ HOME=3D/dfjkshkds bash -l > $ echo $HOME > > Guess what it prints. > > Hint: It isn=E2=80=99t 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. --=20 +<[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