summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2018-08-23 00:52:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-23 18:02:23 +0100
commit6185e3d23c23f50439a898428b90dcd43fa7a8b6 (patch)
treed94c5a73affb12400f873029c131a98d66712bf9 /meta/recipes-extended/ltp
parentf54806852be0a5308bcf0ba87e1e835c38304c43 (diff)
downloadpoky-6185e3d23c23f50439a898428b90dcd43fa7a8b6.tar.gz
ltp: Fix ftest06 too small file path string
The name string is too small to contain normal full path names and causes the following failure. "ftest06 2 TFAIL : ftest06.c:223: Can't chdir(): errno=ENOENT(2): No such file or directory" (From OE-Core rev: 24faf8b9bbee82033d5f636f254e59b8d3d31ea5) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp')
-rw-r--r--meta/recipes-extended/ltp/ltp/0042-fs-ftest-ftest06.c-Fix-too-small-name-string-and-rel.patch34
-rw-r--r--meta/recipes-extended/ltp/ltp_20180515.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0042-fs-ftest-ftest06.c-Fix-too-small-name-string-and-rel.patch b/meta/recipes-extended/ltp/ltp/0042-fs-ftest-ftest06.c-Fix-too-small-name-string-and-rel.patch
new file mode 100644
index 0000000000..407d98eff0
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/0042-fs-ftest-ftest06.c-Fix-too-small-name-string-and-rel.patch
@@ -0,0 +1,34 @@
1From baeef026f80e19a634a4096e97286419aca1cf68 Mon Sep 17 00:00:00 2001
2From: He Zhe <zhe.he@windriver.com>
3Date: Thu, 23 Aug 2018 00:22:04 +0800
4Subject: [PATCH] fs/ftest/ftest06.c: Fix too small name string and related
5 failure
6
7The name string is too small to contain normal full path names and causes
8the following failure.
9
10"ftest06 2 TFAIL : ftest06.c:223: Can't chdir(): errno=ENOENT(2): No such file or directory"
11
12Upstream-Status: Submitted [ltp-list@lists.sourceforge.net]
13
14Signed-off-by: He Zhe <zhe.he@windriver.com>
15---
16 testcases/kernel/fs/ftest/ftest06.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/testcases/kernel/fs/ftest/ftest06.c b/testcases/kernel/fs/ftest/ftest06.c
20index 2ca7c88..b434067 100644
21--- a/testcases/kernel/fs/ftest/ftest06.c
22+++ b/testcases/kernel/fs/ftest/ftest06.c
23@@ -100,7 +100,7 @@ static char *fstyp;
24 int main(int ac, char *av[])
25 {
26 int pid, child, status, count, k, j;
27- char name[3];
28+ char name[MAXPATHLEN];
29
30 int lc;
31
32--
332.7.4
34
diff --git a/meta/recipes-extended/ltp/ltp_20180515.bb b/meta/recipes-extended/ltp/ltp_20180515.bb
index 8f64d7b64a..978d3cd512 100644
--- a/meta/recipes-extended/ltp/ltp_20180515.bb
+++ b/meta/recipes-extended/ltp/ltp_20180515.bb
@@ -49,6 +49,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
49 file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \ 49 file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \
50 file://0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch \ 50 file://0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch \
51 file://0041-cve-2017-5669-shmat-for-0-or-PAGESIZE-with-RND-flag-.patch \ 51 file://0041-cve-2017-5669-shmat-for-0-or-PAGESIZE-with-RND-flag-.patch \
52 file://0042-fs-ftest-ftest06.c-Fix-too-small-name-string-and-rel.patch \
52 " 53 "
53 54
54S = "${WORKDIR}/git" 55S = "${WORKDIR}/git"