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.
-derek 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 ? > > Bob > _______________________________________________ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > -- Derek Atkins 617-623-3745 de...@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel