From e7cfc10a44d1807b197b1dae082ba78f2e08767e Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Thu, 21 Jan 2010 08:53:53 +1100 Subject: [PATCH] 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 --- ltp/growfiles.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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