From: Dave Chinner Date: Wed, 20 Jan 2010 21:53:53 +0000 (+1100) Subject: xfstests: Don't use tempnam in growfiles.c X-Git-Tag: v1.1.0~216 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7cfc10a44d1807b197b1dae082ba78f2e08767e;p=xfstests-dev.git xfstests: Don't use tempnam in growfiles.c tempnam() generates a compiler warning as a dangerous function. This code doesn't care about security issues with tempnam, so remove it and just manually build the filenames without the randomness of tempnam. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- diff --git a/ltp/growfiles.c b/ltp/growfiles.c index a987b5a8..52c90798 100644 --- a/ltp/growfiles.c +++ b/ltp/growfiles.c @@ -1162,10 +1162,9 @@ no whole file checking will be performed!\n", Progname, TagName, (int)getpid()); /* * construct auto filename and insert them into filenames space */ - for(ind=0;ind