syscalls/chmod02: Fix wrong address of buf as write() argument
PATCH 1/1 syscalls/chmod02: Fix wrong address of buf as write() argument
Signed-off-by jungsoo.son <[email protected]>
--- testcases/kernel/syscalls/chmod/chmod02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0
b/testcases/kernel/syscalls/chmod/chmod02.c
index 242cbd3..b1c331a 100644
testcases/kernel/syscalls/chmod/chmod02.c +1 -1
@@ -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 ) {
Signature · 13 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list