rpms/mailx/devel mailx-8.1.1-close.patch, 1.1, 1.2 mailx.spec, 1.27, 1.28

Ivana Varekova (varekova) fedora-extras-commits at redhat.com
Fri Jan 4 09:55:36 UTC 2008


Author: varekova

Update of /cvs/pkgs/rpms/mailx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7043

Modified Files:
	mailx-8.1.1-close.patch mailx.spec 
Log Message:
 test mkstemp output


mailx-8.1.1-close.patch:

Index: mailx-8.1.1-close.patch
===================================================================
RCS file: /cvs/pkgs/rpms/mailx/devel/mailx-8.1.1-close.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mailx-8.1.1-close.patch	4 Jan 2008 09:36:29 -0000	1.1
+++ mailx-8.1.1-close.patch	4 Jan 2008 09:55:28 -0000	1.2
@@ -1,10 +1,18 @@
 diff -up mailx-8.1.1/quit.c.pom mailx-8.1.1/quit.c
 --- mailx-8.1.1/quit.c.pom	2008-01-04 10:24:30.000000000 +0100
-+++ mailx-8.1.1/quit.c	2008-01-04 10:26:58.000000000 +0100
-@@ -468,6 +468,7 @@ edstop()
++++ mailx-8.1.1/quit.c	2008-01-04 10:51:51.000000000 +0100
+@@ -467,7 +467,14 @@ edstop()
+ 	        tempname = (char *)malloc(sizeof(char)*(strlen(tmpdir)+11));
  	        strcpy(tempname, tmpdir);
  	        strcat(tempname, "mboxXXXXXX");
- 	        tempfd = mkstemp(tempname);
+-	        tempfd = mkstemp(tempname);
++	        
++	        if ((tempfd = mkstemp(tempname)) == -1) {
++	    		perror(tempname);
++	    		relsesigs();
++	    		reset(0);
++	        }
++	        
 +	        close(tempfd);
  	     
  		if ((obuf = Fopen(tempname, "w")) == NULL) {


Index: mailx.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mailx/devel/mailx.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- mailx.spec	4 Jan 2008 09:38:36 -0000	1.27
+++ mailx.spec	4 Jan 2008 09:55:28 -0000	1.28
@@ -111,7 +111,7 @@
 
 %changelog
 * Fri Jan  4 2008 Ivana Varekova <varekova at redhat.com> - 8.1.1-47
-- close file descriptor (#427335)
+- close file descriptor, test mkstemp output (#427335)
 
 * Mon Mar  5 2007 Ivana Varekova <varekova at redhat.com> - 8.1.1-46
 - add /usr/share/mailx directory




More information about the fedora-extras-commits mailing list