[svn] gpgme - r1440 - in trunk: . src

svn author wk cvs at cvs.gnupg.org
Thu Dec 10 10:49:47 CET 2009


Author: wk
Date: 2009-12-10 10:49:47 +0100 (Thu, 10 Dec 2009)
New Revision: 1440

Modified:
   trunk/ChangeLog
   trunk/configure.ac
   trunk/src/ChangeLog
   trunk/src/debug.c
Log:
Test on sgid process


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-12-08 22:39:27 UTC (rev 1439)
+++ trunk/ChangeLog	2009-12-10 09:49:47 UTC (rev 1440)
@@ -1,3 +1,7 @@
+2009-12-10  Werner Koch  <wk at g10code.com>
+
+	* configure.ac: Check for getgid and getegid.
+
 2009-12-08  Marcus Brinkmann  <marcus at g10code.de>
 
 	Update to libtool 2.2.6a.

Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2009-12-08 22:39:27 UTC (rev 1439)
+++ trunk/src/ChangeLog	2009-12-10 09:49:47 UTC (rev 1440)
@@ -1,3 +1,7 @@
+2009-12-10  Werner Koch  <wk at g10code.com>
+
+	* debug.c (debug_init): Test on sgid process.
+
 2009-12-08  Marcus Brinkmann  <marcus at g10code.de>
 
 	* Makefile.am (LTRCCOMPILE): Refactor with ...
@@ -5810,7 +5814,7 @@
 	* wait.c: Include `engine.h'.
 	(run_idle): Call _gpgme_engine_housecleaning(), not
 	_gpgme_gpg_housecleaning().
-	
+
 2001-12-18  Marcus Brinkmann  <marcus at g10code.de>
 
 	* key.c (_gpgme_key_append_name): Append, not prepend, the uid.

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2009-12-08 22:39:27 UTC (rev 1439)
+++ trunk/configure.ac	2009-12-10 09:49:47 UTC (rev 1440)
@@ -746,6 +746,10 @@
     fi
 fi
 
+# Check for getgid etc
+AC_CHECK_FUNCS(getgid getegid)
+
+
 # Replacement functions.
 AC_REPLACE_FUNCS(stpcpy)
 # Check for unistd.h for setenv replacement function.

Modified: trunk/src/debug.c
===================================================================
--- trunk/src/debug.c	2009-12-08 22:39:27 UTC (rev 1439)
+++ trunk/src/debug.c	2009-12-10 09:49:47 UTC (rev 1440)
@@ -131,7 +131,11 @@
 	  if (s1)
 	    {
 #ifndef HAVE_DOSISH_SYSTEM
-	      if (getuid () == geteuid ())
+	      if (getuid () == geteuid ()
+#if defined(HAVE_GETGID) && defined(HAVE_GETEGID)
+                  && getgid () == getegid ()
+#endif
+                  )
 		{
 #endif
 		  char *p;




More information about the Gnupg-commits mailing list