Test on sgid process

This commit is contained in:
Werner Koch 2009-12-10 09:49:47 +00:00
parent 02e2f56d1d
commit 31844d30cd
4 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-12-10 Werner Koch <wk@g10code.com>
* configure.ac: Check for getgid and getegid.
2009-12-08 Marcus Brinkmann <marcus@g10code.de> 2009-12-08 Marcus Brinkmann <marcus@g10code.de>
Update to libtool 2.2.6a. Update to libtool 2.2.6a.

View File

@ -746,6 +746,10 @@ if test $ac_cv_func_funopen != yes; then
fi fi
fi fi
# Check for getgid etc
AC_CHECK_FUNCS(getgid getegid)
# Replacement functions. # Replacement functions.
AC_REPLACE_FUNCS(stpcpy) AC_REPLACE_FUNCS(stpcpy)
# Check for unistd.h for setenv replacement function. # Check for unistd.h for setenv replacement function.

View File

@ -1,3 +1,7 @@
2009-12-10 Werner Koch <wk@g10code.com>
* debug.c (debug_init): Test on sgid process.
2009-12-08 Marcus Brinkmann <marcus@g10code.de> 2009-12-08 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (LTRCCOMPILE): Refactor with ... * Makefile.am (LTRCCOMPILE): Refactor with ...

View File

@ -131,7 +131,11 @@ debug_init (void)
if (s1) if (s1)
{ {
#ifndef HAVE_DOSISH_SYSTEM #ifndef HAVE_DOSISH_SYSTEM
if (getuid () == geteuid ()) if (getuid () == geteuid ()
#if defined(HAVE_GETGID) && defined(HAVE_GETEGID)
&& getgid () == getegid ()
#endif
)
{ {
#endif #endif
char *p; char *p;