From: Peng Haitao <penght@cn.fujitsu.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] ftest06.c: fix a bug of using option -i
Date: Sat, 12 Mar 2011 18:07:47 +0800 [thread overview]
Message-ID: <4D7B45F3.90703@cn.fujitsu.com> (raw)
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 <penght@cn.fujitsu.com>
---
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2011-03-12 10:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-12 10:07 Peng Haitao [this message]
2011-03-16 12:43 ` [LTP] [PATCH] ftest06.c: fix a bug of using option -i Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D7B45F3.90703@cn.fujitsu.com \
--to=penght@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=yanegomi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.