[Commits] action.c 1.12.2.76 1.12.2.77

colin at claws-mail.org colin at claws-mail.org
Wed Nov 14 13:33:34 CET 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv25353/src

Modified Files:
      Tag: gtk2
	action.c 
Log Message:
2012-11-14 [colin]	3.8.1cvs121

	* src/action.c
		And fix warning with breaking functionality

Index: action.c
===================================================================
RCS file: /home/claws-mail/claws/src/action.c,v
retrieving revision 1.12.2.76
retrieving revision 1.12.2.77
diff -u -d -r1.12.2.76 -r1.12.2.77
--- action.c	14 Nov 2012 11:20:56 -0000	1.12.2.76
+++ action.c	14 Nov 2012 12:33:32 -0000	1.12.2.77
@@ -973,18 +973,23 @@
 				     ACTION_USER_IN |
 				     ACTION_USER_HIDDEN_IN)) {
 					r |= close(fileno(stdin));
-					(void) dup  (chld_in[0]);
+					if (dup(chld_in[0]) < 0)
+						r = -1;
 				}
 				r |= close(chld_in[0]);
 				r |= close(chld_in[1]);
 
 				r |= close(fileno(stdout));
-				(void) dup  (chld_out[1]);
+				if (dup(chld_out[1]) < 0)
+					r = -1;
+
 				r |= close(chld_out[0]);
 				r |= close(chld_out[1]);
 
 				r |= close(fileno(stderr));
-				(void) dup  (chld_err[1]);
+				if (dup(chld_err[1]) < 0)
+					r = -1;
+
 				r |= close(chld_err[0]);
 				r |= close(chld_err[1]);
 



More information about the Commits mailing list