Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2008 00:43:31 -0800
From:      Bruce Cran <bruce@cran.org.uk>
To:        Eitan Adler <eitanadlerlist@gmail.com>
Cc:        freebsd-hackers@freebsd.org, d@delphij.net
Subject:   Re: change to ee.c
Message-ID:  <20081130004331.086941f3@tau>
In-Reply-To: <493214DC.2080904@gmail.com>
References:  <49320FF7.4040901@gmail.com> <4932122A.8070209@delphij.net> <493214DC.2080904@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 29 Nov 2008 23:21:48 -0500
Eitan Adler <eitanadlerlist@gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Xin LI wrote:
> > Hi, Eitan,
> 
> > Tanks for interested in this but I'm afraid that your patch is
> > incorrect.  mkstemp returns a file descriptor rather than a string
> > pointer, therefore, the subsequent open() would have undefined
> > behavior. It looks like that we actually want fd = mkstemp() here.
> Thanks.  If this is the case how come gcc did not return any warnings?
> > 
> > Note that we may want to bring vendor fixes before making any
> > changes to reduce duplicated work...
> I was not aware that this was a third party program. I'll look around
> and see if this was fixed.
> 

The version of ee in FreeBSD is fairly old: the latest from
http://mahon.cwx.net/ is 1.4.6.  Even so, the
latest version still generates lots of warnings from gcc because the
developer used NULL instead of '\0' (i.e the NULL constant instead of
the NUL string).  The patch at
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/127986 fixes them; I
emailed the developer but got no reply.

-- 
Bruce Cran



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081130004331.086941f3>