From: Rishi k. K R. <ris...@li...> - 2010-04-23 07:07:13
|
The branch, master, has been updated via 23e7806fec4c6be42fdf577559df5498cce45118 (commit) from 5162b710bfc574107d915093c08b198f0a15727e (commit) - Log ----------------------------------------------------------------- commit 23e7806fec4c6be42fdf577559df5498cce45118 Author: Rishikesh K Rajak <ris...@li...> Date: Fri Apr 23 12:35:10 2010 +0530 Running the ltp suite on ChromeOS (x86 with a 2.6.32 kernel) fails linkat01 testcase 21: linkat01 21 TFAIL : linkat() failed: TEST_ERRNO=EXDEV(18): Invalid cross-device link This is probably because my /tmp is mounted from someplace other than the filesystem that contains newdirfd. The goal of testcase 21 is to demonstrate that linking a directory will fail EPERM. The fix is to use olddir/. instead of /tmp. Tested-by: Henry Yei <hy...@mv...> Signed-off-by: Bryan Freed <bf...@go...> Signed-off-by: Rishikesh K Rajak <ris...@li...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/syscalls/linkat/linkat01.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/syscalls/linkat/linkat01.c b/testcases/kernel/syscalls/linkat/linkat01.c index 63b9367..dbda820 100644 --- a/testcases/kernel/syscalls/linkat/linkat01.c +++ b/testcases/kernel/syscalls/linkat/linkat01.c @@ -158,7 +158,7 @@ struct test_struct { { &cwd_fd, "/proc/cpuinfo", &newdirfd, TEST_FILE1, 0, 0, 0, EXDEV }, /* 21. directory link */ - { &cwd_fd, "/tmp", &newdirfd, TEST_FILE1, 0, + { &olddirfd, ".", &newdirfd, TEST_FILE1, 0, 0, 0, EPERM }, /* 22. invalid flag */ { &olddirfd, TEST_FILE1, &newdirfd, TEST_FILE1, 1, hooks/post-receive -- ltp |