On Mon, 2009-06-08 at 14:16 +0800, Wei Yongjun wrote: > The TESTDIR is created by root user, but when we do cleanup, the effective > user had been changed to nobody, so the cleanup will be failed when the > TESTDIR is removed. > > chmod05 0 WARN : tst_rmdir(): rmobj(/tmp/chmOpEdLA) failed: \ > remove(/tmp/chmOpEdLA) failed; errno=1: Operation not permitted > > This patch fixed the problem by reset the effective user to root. > > Signed-off-by: Wei Yongjun <[email protected]>
Thanks for fixing this as well. Regards-- Subrata > --- > testcases/kernel/syscalls/chmod/chmod05.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/testcases/kernel/syscalls/chmod/chmod05.c > b/testcases/kernel/syscalls/chmod/chmod05.c > index c6f1225..252f14e 100644 > --- a/testcases/kernel/syscalls/chmod/chmod05.c > +++ b/testcases/kernel/syscalls/chmod/chmod05.c > @@ -266,6 +266,9 @@ void cleanup() > */ > TEST_CLEANUP; > > + setegid(0); > + seteuid(0); > + > /* Remove tmp dir and all files in it */ > tst_rmdir(); > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
