tempnam is dangerous ?
derek at ihtfp.com
Thu Aug 2 14:20:08 EDT 2012
Nah, it's just part of a test.
The issue is that there is a potential race condition where the temp file
might get used between the time the name is created/tested and the time
the file is opened. It's irrelevant for a test.
On Thu, August 2, 2012 1:58 pm, Robert Fewell wrote:
> Hi guys,
> Just noticed this warning on my last compile....
> src/backend/dbi/test/utest-backend-dbi-basic.c:43: warning: the use of
> `tempnam' is dangerous, better use `mkstemp'
> Should this be changed ?
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
Derek Atkins 617-623-3745
derek at ihtfp.com www.ihtfp.com
Computer and Internet Security Consultant
More information about the gnucash-devel