Hi !

This patch fix directory remove issue on NFS. On NFS unlinking AND
closing all files in a directory is mandaroty before unlinking this
directory.

This also fix a write in a invalid array entry. fds[5] does not exist
since we only defines 5 tests.

Regards.

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/fchmodat/fchmodat01.c
===================================================================
--- cvs.orig/testcases/kernel/syscalls/fchmodat/fchmodat01.c	2008-03-13 11:45:24.000000000 +0100
+++ cvs/testcases/kernel/syscalls/fchmodat/fchmodat01.c	2008-03-13 12:01:49.000000000 +0100
@@ -195,7 +195,6 @@
 	fds[0] = fds[1] = fds[4] = dirfd;
 	fds[2] = fd;
 	fds[3] = 100;
-	fds[5] = AT_FDCWD;
 
 	filenames[0] = filenames[2] = filenames[3] = filenames[4] = testfile;
 	filenames[1] = testfile2;
@@ -220,6 +219,7 @@
 void cleanup()
 {
 	/* Remove them */
+	close (fd);
 	unlink(testfile);
 	unlink(testfile2);
 	unlink(testfile3);

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