delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/22/07:11:20

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=X+COuj56+HQ+0rwXVjxUsMNZJz+PS9TXAyHZtoc5c8EzGeSdyfz5E
XkDalZN9FgQmhEj0SCLa4oc8qCqpFnNMNNpWhm2GFaWzwutTOOyPLLFjpqiNRmWN
y/rAchHIbW02HetME0pHySTH4A9jSjZaS0VGMjJLKz7zwMVGhEdw04=
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=EQDW6FyqZDNDngwzh8pAN2JRmT0=; b=mbxCbPSHthKvbShIMn5Bt7L3Pki4
J65Lx2cxRe+RdCHKc3vA4SBnPr4MDI1dEta8FipSheR13OIigHbM3PcGXS6+fwoi
JdedFr/j3a339NE1ynMnjzLbSVEyOPVrIOHXQkeNiNDOUCeOWUiw/ESv+BcXdjC+
0zjAttMCcBqdt3w=
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
X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED autolearn=ham version=3.3.2
Date: Thu, 22 Aug 2013 13:10:58 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: shell-init: error retrieving current directory
Message-ID: <20130822111058.GK2562@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <521571A7 DOT 6010503 AT gmail DOT com> <521575A1 DOT 6020304 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <521575A1.6020304@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Virus-Found: No

--6K2R/cS9K4qvcBNq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 22 06:21, LRN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> On 22.08.2013 06:04, nu774 wrote:
> > Hi, I've experienced the same issue. From what I can see:
> > Current bash.exe of cygwin64 seems to be improperly built with
> > HAVE_GETCWD disabled, which result in using it's own getcwd
> > implementation in the bash source package.
> 1) It's not improperly disabled. Cygwin's getcwd does not behave the way
> bash wants it to (when called with 0 buffer and 0 buffer length, it
> fails, instead of allocating buffer). At least that is my understanding
> after observing the source code.

That's not the case.  getcwd(NULL, 0) allocates a buffer via malloc,
as on Linux.



Corinna

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

--6K2R/cS9K4qvcBNq
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBAgAGBQJSFfHCAAoJEPU2Bp2uRE+gdfIP/ibWBieagcN/e4jtYUTZceSP
nDOPQC9RjtUoqXLYDu90s+VrIc4NcvIsaENo4ug/spKUrfML9y5fOPX3SIfu69Mu
lAD5JAHo4aeHRZK7sxGRElrcYMPnhlEvEjkZswnXIJiXlV/QPVH97GvrEJnqlXMV
LToKJvW0GpH2CJP6dtCN9xWiuWMHJEcMc7SIghehQZ6qu8xc09eLqU85oR1QyDys
ip1i2gWsWIsVmMLfp1vm18/LxZETjGxvdrdqvAAJrJb2g2VLS+FOEoCDbbG+tTwN
CTSzXC0HPK4Q/xeExRDDet5kK7dYNpUsUUrvNPq3r10LkwOk2qS5ouY+x2crGt2y
0nLDCZUAgZHSCbeSkdOWfyvvOkw+6N1vOnHpJDNQNJhM7v0OgV/Y4m/T+KAv4SyU
VQYXUzxgHXnYnZDhPUM8GQRaqAyTupRGy0wWbMJygFeYdrbtbBNhKcxzdi4Zw5/r
mO75MWglPEyOz/B0nnXKBHKj3x49e/pkYkYmfsTXdzU51KDSbqMQowJcozy7W2BR
I87/ydQ+K/rHF5Crgy17Uh0OVfkhn3RIjObN7yu+ooMoO5PISs49aR6dfnSD3SQg
KMyZfnPY9ajwpPrWTXpGUx8cPs8R3LUIhKlD8eaxpKk8oaQaUCdTQApN3wPCkvU6
q5z0EAA72+VOD8QpR7Rs
=PSkn
-----END PGP SIGNATURE-----

--6K2R/cS9K4qvcBNq--

- Raw text -


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