From: Subrata <sub...@us...> - 2008-01-21 11:16:51
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/fdatasync In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27456/ltp/testcases/kernel/syscalls/fdatasync Modified Files: fdatasync01.c Log Message: Fixing missing argument for open() function when O_CREAT is in the flag, by, Yi Xu <yx...@su...> Index: fdatasync01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fdatasync/fdatasync01.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fdatasync01.c 11 Feb 2006 07:24:01 -0000 1.3 --- fdatasync01.c 21 Jan 2008 11:16:16 -0000 1.4 *************** *** 145,149 **** /*NOTREACHED*/ } ! if((fd = open(filename, O_CREAT|O_WRONLY)) == -1) { tst_brkm(TBROK, tst_exit, "open() failed"); /*NOTREACHED*/ --- 145,149 ---- /*NOTREACHED*/ } ! if((fd = open(filename, O_CREAT|O_WRONLY, 0777)) == -1) { //mode must be specified when O_CREATE is in the flag tst_brkm(TBROK, tst_exit, "open() failed"); /*NOTREACHED*/ |