Re: File descriptor leaks from open() in e-d-s

Matthew Barnes <[email protected]> Mon, 14 May 2007 10:54:05 -0400
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
On Mon, 2007-05-14 at 10:21 -0400, Jeffrey Stedfast wrote:
> hmmm, I wonder if glib has a g_mkstemp() or something? if not, perhaps
> we should consider writing our own mkstemp() wrapper in
> camel-file-utils.c or something.
> 
> if there is a g_mkstemp(), this code could be simplified a bit and
> probably not have to alloca() at all.

There is indeed:
http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html#g-mkstemp