Skip to contentSkip to conversation

fs/ftest/ftest06.c: Fix too small name string and related failure

PATCH New He Zhe 2 participants 2 messages Aug 24, 2018

lore
Share & tools
lore

He Zhe

author
#0 lore raw

PATCH 1/1 fs/ftest/ftest06.c: Fix too small name string and related failure

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"

---
 testcases/kernel/fs/ftest/ftest06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/fs/ftest/ftest06.c +1 -1
index 2ca7c8880..b43406785 100644
@@ -100,7 +100,7 @@ static char *fstyp;
 int main(int ac, char *av[])
 {
 	int pid, child, status, count, k, j;
-	char name[3];
+	char name[MAXPATHLEN];
 
 	int lc;
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 fs/ftest/ftest06.c: Fix too small name string and related failure

----- Original Message -----

Quoted 7 lines

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"

Pushed.

Thanks,
Jan