When using option -i, the case will print the following error message: # ./ftest06 -i 2 ftest06 1 TPASS : Test passed. ftest06 2 TFAIL : Can't chdir(/tmp/fteBX4U5O/ftest06.7461/tmp/fteBX4U5O/ftest06.7461): errno=ENOENT(2): No such file or directory
Signed-off-by: Peng Haitao <[email protected]> --- testcases/kernel/fs/ftest/ftest06.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/fs/ftest/ftest06.c b/testcases/kernel/fs/ftest/ftest06.c index 18eae5d..d59a18f 100644 --- a/testcases/kernel/fs/ftest/ftest06.c +++ b/testcases/kernel/fs/ftest/ftest06.c @@ -140,10 +140,10 @@ int main(int ac, char *av[]) } } cwd = startdir; - strcat(dirname, cwd); + strcpy(dirname, cwd); sprintf(tmpname, "/ftest06.%d", getpid()); strcat(dirname, tmpname); - strcat(homedir, cwd); + strcpy(homedir, cwd); sprintf(tmpname, "/ftest06h.%d", getpid()); strcat(homedir, tmpname); -- 1.7.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
