From: Ling, X. <xia...@in...> - 2004-08-20 02:46:30
|
Is there any comment for the patch, is it acceptable?=20 >-----Original Message----- >From: ltp...@li...=20 >[mailto:ltp...@li...] On Behalf Of=20 >Ling, Xiaofeng >Sent: 2004=C4=EA8=D4=C217=C8=D5 15:58 >To: ltp...@li... >Subject: [LTP] [Patch] fix problem in chmod06 EACCES should be EPERM > >This case is same as the one I report previous. Without TDIRECTORY, it >can pass.with can't. >That due to the wrong result checking. see the patch. >tst_tmpdir create a dir with no other user access , so it returns >EACCES. >So there should also a patch to tst_tmpdir or add some code the change >the mode of the tmpdir. > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >diff -ru chmod06.orig.c chmod06.c >--- chmod06.orig.c 2004-08-13 10:31:06.149314320 +0800 >+++ chmod06.c 2004-08-13 10:31:14.563035240 +0800 >@@ -118,7 +118,7 @@ > int exp_errno; > int (*setupfunc)(); > } Test_cases[] =3D { >- { TEST_FILE1, "Process is not owner/root", FILE_MODE, EACCES, >setup1 }, >+ { TEST_FILE1, "Process is not owner/root", FILE_MODE, EPERM, >setup1 }, > { TEST_FILE2, "No Search permissions to process", FILE_MODE, >EACCES, setup2 }, > { High_address_node, "Address beyond address space", FILE_MODE, >EFAULT, no_setup }, > { (char *)-1, "Negative address", FILE_MODE, EFAULT,=20 >no_setup }, > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >Ltp-list mailing list >Ltp...@li... >https://lists.sourceforge.net/lists/listinfo/ltp-list > |