[svn] pinentry - r153 - in trunk: . secmem

svn author marcus cvs at cvs.gnupg.org
Sat Jul 29 02:10:46 CEST 2006


Author: marcus
Date: 2006-07-29 02:10:45 +0200 (Sat, 29 Jul 2006)
New Revision: 153

Modified:
   trunk/ChangeLog
   trunk/secmem/secmem.c
Log:
2006-07-29  Marcus Brinkmann  <marcus at g10code.de>

	* secmem/secmem.c (init_pool): Close FD after establishing the
	mapping.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2005-09-28 21:18:14 UTC (rev 152)
+++ trunk/ChangeLog	2006-07-29 00:10:45 UTC (rev 153)
@@ -1,3 +1,8 @@
+2006-07-29  Marcus Brinkmann  <marcus at g10code.de>
+
+	* secmem/secmem.c (init_pool): Close FD after establishing the
+	mapping.
+
 2005-09-28  Marcus Brinkmann  <marcus at g10code.de>
 
 	* configure.ac (PINENTRY_GTK): Error out if iconv is not found but

Modified: trunk/secmem/secmem.c
===================================================================
--- trunk/secmem/secmem.c	2005-09-28 21:18:14 UTC (rev 152)
+++ trunk/secmem/secmem.c	2006-07-29 00:10:45 UTC (rev 153)
@@ -219,6 +219,7 @@
 	else {
 	    pool = mmap( 0, poolsize, PROT_READ|PROT_WRITE,
 				      MAP_PRIVATE, fd, 0);
+	    close (fd);
 	}
     }
 # endif




More information about the Gnupg-commits mailing list