Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.ecn.uoknor.edu!news.ysu.edu!malgudi.oar.net!news.sprintlink.net!gatech!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter From: peter@nmti.com (Peter da Silva) Subject: Re: Major strcmp bug under BSD 2.0? Message-ID: <id.CQCK1.FCH@nmti.com> Sender: peter@nmti.com (peter da silva) Organization: Network/development platform support, NMTI References: <3qfn52$188j@troy.la.locus.com> <3qfpuf$b08@gosset.maths.tcd.ie> <3qga0c$14pf@troy.la.locus.com> Date: Wed, 31 May 1995 19:55:55 GMT Lines: 21 In article <3qga0c$14pf@troy.la.locus.com>, Sassan Behzadi <sassan@locus.com> wrote: > it looks as if they all do getenv's on expected environment variables > and (without checking for NULL) strcmp the results. Now this horrible > act causes no problems on several UNIX'es that I've tried (in every case > a NULL is treated as an empty string), but on FreeBSD is dumps core. They'll dump core on OSF/1 and a number of other unixes. On others they will see garbage strings (the classic is the PDP-11 death cry of ^G^IP@P6). SunOS has a kludge of putting 0 at 0 to let you get away with this... one of their many sins. > OK I can change _my_ programs but what about all of the cgi-bin programs > from NCSA? Who's going to teach _them_ how to program? Send them patches. Make fun of them on comp.infosystems. -- Peter da Silva `-_-' Network Management Technology Incorporated 'U` 1601 Industrial Blvd. Sugar Land, TX 77478 USA +1 713 274 5180 "Har du kramat din varg idag?"