This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: Problem with sh/bash and snapshot cygwin1-20050825.dll
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: The Cygwin-Talk Maiming List <cygwin-talk at cygwin dot com>
- Date: Fri, 26 Aug 2005 11:12:19 -0400 (EDT)
- Subject: Re: Problem with sh/bash and snapshot cygwin1-20050825.dll
- References: <082620051456.7539.430F2DAE0006648800001D7322007613940A050E040D0C079D0A@comcast.net><430F3025.7DB415EB@dessent.net>
- Reply-to: The Cygwin-Talk Malingering List <cygwin-talk at cygwin dot com>
- Reply-to: The Cygwin-Talk Malingering List <cygwin-talk at cygwin dot com>
On Fri, 26 Aug 2005, Brian Dessent wrote:
> Eric Blake wrote:
>
> > Because POSIX states that buf is indeterminate on error, and
> > because Corrina's patch caused a regression (ie. 1.5.18 was
> > setting buf[0] to 0 on error). QofI states that we might as
> > well make the indeterminate buffer useful, in case a user
> > forgets to check the return value being NULL.
>
> Ah yes. But, if we want to follow the mantra of "we're just mean" then
> obviously the buffer should be filled with a long string of obscenities
> and insults on error condition. The dirtier the better -- maybe
> "/bin/fortune --nasty" could be called. And without a terminating \0,
> of course.
strcpy(buf,"HIPPOhippoHIPPOhippoHIPPOhippoHIPPOhippoHIPPOhippo");
buf[strlen(buf)]='H';
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA