This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Problem with sh/bash and snapshot cygwin1-20050825.dll
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 26 Aug 2005 15:51:59 +0100
- Subject: RE: Problem with sh/bash and snapshot cygwin1-20050825.dll
----Original Message----
>From: Christopher Faylor
>Sent: 26 August 2005 15:48
> On Fri, Aug 26, 2005 at 06:17:13AM -0600, Eric Blake wrote:
>> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead
>> of leaving garbage there.
>
> What's the rationale for touching buf when realpath is returning an error
> and setting EINVAL?
>
> cgf
Standards-mandated leeway?
http://www.opengroup.org/onlinepubs/009695399/functions/realpath.html
Upon successful completion, [ ... ]. Otherwise, realpath() shall return a
null pointer and set errno to indicate the error, and the contents of the
buffer pointed to by resolved_name are undefined.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/