Description: fix a GCC warning.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2015-02-11
Index: tcpspy-1.7d/tcpspy.c
===================================================================
--- tcpspy-1.7d.orig/tcpspy.c
+++ tcpspy-1.7d/tcpspy.c
@@ -716,7 +716,10 @@ int main (int argc, char *argv[])
 		close (nullfd);
 
 		setpgid (0, 0);
-		chdir ("/");
+		/* [FIX] tcpspy.c:719:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] */
+		if( chdir ("/") == -1) {
+		    return;
+		}
 		umask (0);
 	} else
 		fprintf (stderr, "tcpspy 1.7d started (debug)\n");
