From: Martin R. <mr...@us...> - 2004-09-27 22:10:42
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/statfs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21726 Modified Files: statfs03.c Log Message: Changes to fix statfs03 error on trying to write to protected directory Index: statfs03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/statfs/statfs03.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** statfs03.c 15 Sep 2004 15:20:06 -0000 1.6 --- statfs03.c 27 Sep 2004 22:10:27 -0000 1.7 *************** *** 143,150 **** /* create a test file */ sprintf(fname, "%s.%d", fname, getpid()); ! if ((fileHandle = creat(fname, 0444)) == -1) { ! tst_resm(TFAIL, "creat(2) FAILED to creat temp file"); ! } ! sprintf(path, "%s", fname); --- 143,154 ---- /* create a test file */ sprintf(fname, "%s.%d", fname, getpid()); ! if (mkdir(fname, 0444) == -1) { ! tst_resm(TFAIL, "creat(2) FAILED to creat temp file"); ! } else { ! sprintf(path, "%s/%s", fname, fname); ! if ((fileHandle = creat(path, 0444)) == -1) { ! tst_resm(TFAIL, "creat (2) FAILED to creat temp file"); ! } ! } |