From: Subrata <sub...@us...> - 2008-07-11 10:56:39
|
Update of /cvsroot/ltp/ltp/testcases/kernel/fs/scsi/ltpfs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4283/ltp/testcases/kernel/fs/scsi/ltpfs Modified Files: main.c Log Message: There were some mistakes in my previous patch. - wrong mode 0644 for mkdir(). - unnecessary to add 0644 for open() since the flag doesn't include O_CREAT (while it does no harm). By this new patch, they are fixed. Junjiro Okajima <hoo...@ya...>. Index: main.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/scsi/ltpfs/main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.c 3 Jul 2008 10:52:11 -0000 1.2 --- main.c 11 Jul 2008 10:56:36 -0000 1.3 *************** *** 96,100 **** } ! ltp_fileHandle = open("/tmp/testfile", O_CREAT | O_RDWR | O_SYNC | FASYNC, 0644); if (ltp_fileHandle > 0) { --- 96,101 ---- } ! ltp_fileHandle = open("/tmp/testfile", O_CREAT | O_RDWR | O_SYNC | FASYNC, ! S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if (ltp_fileHandle > 0) { |