Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From baeef026f80e19a634a4096e97286419aca1cf68 Mon Sep 17 00:00:00 2001 |
| 2 | From: He Zhe <zhe.he@windriver.com> |
| 3 | Date: Thu, 23 Aug 2018 00:22:04 +0800 |
| 4 | Subject: [PATCH] fs/ftest/ftest06.c: Fix too small name string and related |
| 5 | failure |
| 6 | |
| 7 | The name string is too small to contain normal full path names and causes |
| 8 | the following failure. |
| 9 | |
| 10 | "ftest06 2 TFAIL : ftest06.c:223: Can't chdir(): errno=ENOENT(2): No such file or directory" |
| 11 | |
| 12 | Upstream-Status: Submitted [ltp-list@lists.sourceforge.net] |
| 13 | |
| 14 | Signed-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 | |
| 19 | diff --git a/testcases/kernel/fs/ftest/ftest06.c b/testcases/kernel/fs/ftest/ftest06.c |
| 20 | index 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 | -- |
| 33 | 2.7.4 |
| 34 | |