NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51803: lib/libc/ttyio/t_ttyio:tty coverity fix



The following reply was made to PR bin/51803; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51803: lib/libc/ttyio/t_ttyio:tty coverity fix
Date: Mon, 9 Jan 2017 16:56:22 -0800

 --Apple-Mail=_67FB1AF5-DD3C-4929-A473-CCA740AB584B
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 
 
 --Apple-Mail=_67FB1AF5-DD3C-4929-A473-CCA740AB584B
 Content-Disposition: attachment;
 	filename=lib-libc-ttyio-t_ttyio-cleanup-socket-when-done.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="lib-libc-ttyio-t_ttyio-cleanup-socket-when-done.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: tests/lib/libc/ttyio/t_ttyio.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/ttyio/t_ttyio.c,v
 retrieving revision 1.2
 diff -u -r1.2 t_ttyio.c
 --- tests/lib/libc/ttyio/t_ttyio.c	19 Apr 2011 20:07:53 -0000	1.2
 +++ tests/lib/libc/ttyio/t_ttyio.c	9 Jan 2017 23:49:09 -0000
 @@ -152,6 +152,7 @@
  	REQUIRE_ERRNO(sigaction(SIGCHLD, &sa, NULL), -1);
  	(void) wait(NULL);
  
 +	(void)close(s);
  	ATF_REQUIRE_EQ(rc, 0);
  }
  
 
 --Apple-Mail=_67FB1AF5-DD3C-4929-A473-CCA740AB584B--
 


Home | Main Index | Thread Index | Old Index