[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-cvs
Subject:    [Ltp-cvs] ltp/testcases/kernel/syscalls/fcntl fcntl18.c,1.8,1.9
From:       Subrata <subrata_modak () users ! sourceforge ! net>
Date:       2008-01-21 11:16:19
Message-ID: E1JGue3-0001ag-2h () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27456/ltp/testcases/kernel/syscalls/fcntl


Modified Files:
	fcntl18.c 
Log Message:
Fixing missing argument for open() function when O_CREAT is in the flag, by, Yi Xu \
<yxu@suse.de>


Index: fcntl18.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl18.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** fcntl18.c	27 Feb 2006 04:38:57 -0000	1.8
--- fcntl18.c	21 Jan 2008 11:16:16 -0000	1.9
***************
*** 82,86 ****
  	tst_resm(TINFO, "Enter block 1");
  	fail = 0;
! 	if ((fd = open("temp.dat", O_CREAT|O_RDWR)) < 0) {
  		tst_resm(TFAIL, "file opening error");
  		fail = 1;
--- 82,86 ----
  	tst_resm(TINFO, "Enter block 1");
  	fail = 0;
! 	if ((fd = open("temp.dat", O_CREAT|O_RDWR, 0777)) < 0) { //mode must be specified \
when O_CREATE is in the flag  tst_resm(TFAIL, "file opening error");
  		fail = 1;


-------------------------------------------------------------------------
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-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic