delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/27/10:09:30

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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=IHWd3+IWZJ3CGrqjfHP2JXvW/Us1EdDnQlxOTvULPT8TjPrKA22jW
wcM0NGoeIa/tfpjAbddAWC1yZNd6RwSXN0jNFYA+15p4ZpEgjd7LZk9V2TRBfuTl
zvPhEa9KAATjb0XrfILdK/KsaBoi8EY2PPHRjzchk/yuGZEyjYhnuo=
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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=zrfpVyAua6QVqdQJG6UaN8JmhbY=; b=g6CsgHDZFF6VtmuWcAT9hSlyBdw5
SLK788W+QD3Boezl6IMZyObIYDqFXOTfiVOdHezvlyzo4f/NLwZ6/76DqXY4XXH7
Uyr+HKq9tWyesyys9y3kVFuEg4z+SvHXvlMvvb92p0VFAVO356CVW8PmRGhfwa9Z
WEEGzTKOemVdwx4=
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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 27 Oct 2014 15:09:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1
Message-ID: <20141027140911.GA14398@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20141024110209 DOT GJ20607 AT calimero DOT vinschen DOT de> <25D5C8B8-57B7-449C-95C6-CD9055816B6B AT Denis-Excoffier DOT org> <20141024193638 DOT GO20607 AT calimero DOT vinschen DOT de> <544AB396 DOT 5060300 AT t-online DOT de> <09092535-826E-4995-94E8-B4AF3E4F5089 AT Denis-Excoffier DOT org> <20141025111016 DOT GA30397 AT calimero DOT vinschen DOT de> <20141025144934 DOT GB30397 AT calimero DOT vinschen DOT de> <544DE6C3 DOT 3080005 AT t-online DOT de> <20141027113755 DOT GW20607 AT calimero DOT vinschen DOT de> <1710724383 DOT 20141027163444 AT yandex DOT ru>
MIME-Version: 1.0
In-Reply-To: <1710724383.20141027163444@yandex.ru>
User-Agent: Mutt/1.5.23 (2014-03-12)

--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 27 16:34, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
>=20
> >> >- In execve, when creating the Windows environment for the child proc=
ess,
> >> >   check if $PATH is empty.  If so, set $PATH to /bin for the child.
> >> >   Or, check if /bin is in $PATH, if not, add it.
> >> >
> >> >That would catch both problems, backward compatibility with Denis
> >> >scenario, as well as the PATH setting in postfix.
> >>=20
> >> OK for me. For postfix, the '$PATH is empty' check would be sufficient.
>=20
> > Thanks, I applied a patch to add the Windows version of /bin to the
> > Windows environment when spawning a new process.  Checking if $PATH
> > contains this dir is a bit awkward.  If it really turns out to be
> > necessary at one point, we can add it then.
>=20
> Wouldn't that increase the chance of triggering the bug of environment bl=
ock
> growing too big?

- If PATH is empty, starting any Cygwin process will fail.

- Adding a few bytes, ~40 in my case, shouldn't really matter.

- Cygwin is creating a UNICODE environment.  The call to CreateProcess
  has no size restriction when using a UNICODE environment.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--4Ckj6UjgE2iN1+kY
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUTlIHAAoJEPU2Bp2uRE+gnZ4P/3pT/j3CIgeqdH3BFZ5v/u0+
1jp0Ugv9soVT8SJ8xJmzfAAvLGgYReShaycF1zXxV4HrQbvusgYK9hb1zZKflGmE
Yzj8EcfJXNIa3Guu8UT224QZmoIM0dR78bJmgJcFmPV8p2EcScoOmr/cbjjo4SiU
nsTcxIGJ6yAVZRJ6d6Fl5X/qkUlE/EZujVATuI4hMvG1e+eelRYkX2DyMShGdy4H
SdRkTuAE9v5l8m+NTO8L+hdWsPJWFUvnbQPkCiV89K2CfhOLTl7pCaL/1ONKf6kh
exgSldBdoWaXd4Z12cvubbFlIWroZWbLbc5wXsBrt+3XlfpBb14XILKIO+LCdVW2
jmp7DjKxrhaCNvwtWGjFinACXeaSxHObsxRWHBiL69LJY6SeRwgZ7co/Z12y8uG3
7BYyiu5kh9taMfBE1P/0C6La8TOwccmVtfyBsWP3L3aCzrxl7pz1VigtOUcX4HdI
9dlB12LSDosx402X621FNQNlWMn/tjHNDBYc/XKp68hIERL0skuYgrQT0DbkbRoy
NYxo1lSwbYFVvblhkKAsQlKG12exz2Ne996RF25C1sTXMvLmUs5SgMXSwiUZUthX
lLXN0pdq4l+YaMSGqhkmDgH3FkxfQJlxG08WfgBNzz0AHiG3Qej+HuiG4nkJv8SN
D1WmYSxurwLhJtM5hK4z
=y1xR
-----END PGP SIGNATURE-----

--4Ckj6UjgE2iN1+kY--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019