From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Uk39o-0003kM-0S for ltp-list@lists.sourceforge.net; Wed, 05 Jun 2013 02:09:00 +0000 Received: from lgeamrelo01.lge.com ([156.147.1.125]) by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1Uk39m-0002cy-EM for ltp-list@lists.sourceforge.net; Wed, 05 Jun 2013 02:08:59 +0000 From: "Jungsoo Son" Date: Wed, 5 Jun 2013 11:08:48 +0900 Message-ID: <009301ce6191$9f015560$dd040020$@lge.com> MIME-Version: 1.0 Content-Language: ko Subject: [LTP] [PATCH] syscalls/chmod02: Fix wrong address of buf as write() argument List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: ltp-list@lists.sourceforge.net Signed-off-by: jungsoo.son --- testcases/kernel/syscalls/chmod/chmod02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/chmod/chmod02.c b/testcases/kernel/syscalls/chmod/chmod02.c index 242cbd3..b1c331a 100644 --- a/testcases/kernel/syscalls/chmod/chmod02.c +++ b/testcases/kernel/syscalls/chmod/chmod02.c @@ -187,7 +187,7 @@ void setup() if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) { tst_brkm(TBROK | TERRNO, cleanup, "open(%s, O_RDWR|O_CREAT,0700) failed", fname); - } else if (write(fd, &buf, strlen(buf)) == -1) { + } else if (write(fd, buf, strlen(buf)) == -1) { tst_brkm(TBROK | TERRNO, cleanup, "write(%s, &buf, strlen(buf)) failed", fname); } else if (close(fd) == -1) { -- 1.7.9.5 ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list