All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] fs/ftest/ftest06.c: Fix too small name string and related failure
@ 2018-08-24  1:59 He Zhe
  0 siblings, 0 replies; 5+ messages in thread
From: He Zhe @ 2018-08-24  1:59 UTC (permalink / raw)
  To: ltp

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"

Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 testcases/kernel/fs/ftest/ftest06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/ftest/ftest06.c b/testcases/kernel/fs/ftest/ftest06.c
index 2ca7c8880..b43406785 100644
--- a/testcases/kernel/fs/ftest/ftest06.c
+++ b/testcases/kernel/fs/ftest/ftest06.c
@@ -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;
 
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] fs/ftest/ftest06.c: Fix too small name string and related failure
  2018-08-24  1:46 He Zhe
@ 2018-08-24  8:34 ` Jan Stancek
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Stancek @ 2018-08-24  8:34 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> 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"
> 
> Signed-off-by: He Zhe <zhe.he@windriver.com>

Pushed.

Thanks,
Jan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] fs/ftest/ftest06.c: Fix too small name string and related failure
@ 2018-08-24  1:46 He Zhe
  2018-08-24  8:34 ` Jan Stancek
  0 siblings, 1 reply; 5+ messages in thread
From: He Zhe @ 2018-08-24  1:46 UTC (permalink / raw)
  To: ltp

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"

Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 testcases/kernel/fs/ftest/ftest06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/ftest/ftest06.c b/testcases/kernel/fs/ftest/ftest06.c
index 2ca7c8880..b43406785 100644
--- a/testcases/kernel/fs/ftest/ftest06.c
+++ b/testcases/kernel/fs/ftest/ftest06.c
@@ -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;
 
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH] fs/ftest/ftest06.c: Fix too small name string and related failure
  2018-08-22 16:34 zhe.he
@ 2018-08-23 14:21 ` Cyril Hrubis
  0 siblings, 0 replies; 5+ messages in thread
From: Cyril Hrubis @ 2018-08-23 14:21 UTC (permalink / raw)
  To: zhe.he; +Cc: ltp-list

Hi!
This mailing list has been replaced by ltp@lists.linux.it long time ago,
please send patches to the new list instead.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] fs/ftest/ftest06.c: Fix too small name string and related failure
@ 2018-08-22 16:34 zhe.he
  2018-08-23 14:21 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: zhe.he @ 2018-08-22 16:34 UTC (permalink / raw)
  To: ltp-list

From: He Zhe <zhe.he@windriver.com>

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"

Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 testcases/kernel/fs/ftest/ftest06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/ftest/ftest06.c b/testcases/kernel/fs/ftest/ftest06.c
index 2ca7c88..b434067 100644
--- a/testcases/kernel/fs/ftest/ftest06.c
+++ b/testcases/kernel/fs/ftest/ftest06.c
@@ -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;
 
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-24  8:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24  1:59 [LTP] [PATCH] fs/ftest/ftest06.c: Fix too small name string and related failure He Zhe
  -- strict thread matches above, loose matches on Subject: below --
2018-08-24  1:46 He Zhe
2018-08-24  8:34 ` Jan Stancek
2018-08-22 16:34 zhe.he
2018-08-23 14:21 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.