95d8d32fc5
- package rebased - removed embeded db4 - removed patches merged by upstream - removed no longer required patches - merged patches doing manpage changes - merged patches exporting ldif API - reapplied patches and added description to each one - removed unnecessary BuildRequires - cleaned %config, %build and %install sections - updated database upgrade process: - database is exported (slapcat) and reimported (slapadd) when minor version of openldap changes (safe and recomended way) - database is upgraded (db4) when minor version of db4 package changes (this is not done in %post anymore, as the database is not embeded, but using triggers) Resolved: #624616 Bogus links in "SEE ALSO" part of several man-pages Resolved: #625740 openldap-2.4.23 is available
18 lines
694 B
Diff
18 lines
694 B
Diff
Normally, skips reading of user configuration file when running with different effective UID.
|
|
This patch adds the same behavior for GID.
|
|
|
|
Author: Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
diff -uNPrp openldap-2.4.23.old/libraries/libldap/init.c openldap-2.4.23.new/libraries/libldap/init.c
|
|
--- openldap-2.4.23.old/libraries/libldap/init.c 2010-04-13 22:22:57.000000000 +0200
|
|
+++ openldap-2.4.23.new/libraries/libldap/init.c 2010-08-24 17:25:07.207682002 +0200
|
|
@@ -663,7 +663,7 @@ void ldap_int_initialize( struct ldapopt
|
|
openldap_ldap_init_w_sysconf(LDAP_CONF_FILE);
|
|
|
|
#ifdef HAVE_GETEUID
|
|
- if ( geteuid() != getuid() )
|
|
+ if ( geteuid() != getuid() || getegid() != getgid() )
|
|
return;
|
|
#endif
|
|
|