Ooop... My previous patch not not the right one...

Here is the good patch.

R.

-- 
Renaud Lottiaux

Kerlabs
Bâtiment Germanium
80, avenue des buttes de Coësmes
35700 Rennes - France
Phone : (+33|0)6 80 89 19 34
Fax   : (+33|0)2 99 84 71 71
Email : [EMAIL PROTECTED]
Web   : http://www.kerlabs.com/
Index: cvs/testcases/kernel/syscalls/fchownat/fchownat01.c
===================================================================
--- cvs.orig/testcases/kernel/syscalls/fchownat/fchownat01.c	2008-03-13 11:25:26.000000000 +0100
+++ cvs/testcases/kernel/syscalls/fchownat/fchownat01.c	2008-03-13 11:41:15.000000000 +0100
@@ -233,9 +233,11 @@
 	/* Remove them */
 	char tmppathname[256];
 	strcpy(tmppathname, pathname);
-	unlink(strcat(strcat(tmppathname, "/"), testfile));
+
+	close (fd);
 	unlink(testfile);
 	unlink(testfile2);
+	unlink(testfile3);
 	rmdir(pathname);
 
 	/*

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to