This kernel commit restored original behavior:
commit 1fa1e7f615f4d3ae436fa319af6e4eebdd4026a8
Author: Andy Whitcroft <[email protected]>
Date: Wed Nov 2 09:44:39 2011 +0100
readlinkat: ensure we return ENOENT for the empty pathname for
normal lookups
For kernel >= 3.2, ENOENT should be expected errno code.
Signed-off-by: Jan Stancek <[email protected]>
---
testcases/kernel/syscalls/readlink/readlink03.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/syscalls/readlink/readlink03.c b/testcases/kernel/syscalls/readlink/readlink03.c
index 370bf7d..85141f9 100644
--- a/testcases/kernel/syscalls/readlink/readlink03.c
+++ b/testcases/kernel/syscalls/readlink/readlink03.c
@@ -174,7 +174,8 @@ int main(int ac, char **av)
}
if (strncmp(test_desc, "Symlink Pathname is empty", 25) == 0) {
- if ((tst_kvercmp(2, 6, 39)) >= 0)
+ if (tst_kvercmp(2, 6, 39) >= 0
+ && tst_kvercmp(3, 2, 0) < 0)
Test_cases[i].exp_errno = EINVAL;
}
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list