1 |
Normally, skips reading of user configuration file when running with different effective UID. |
2 |
This patch adds the same behavior for GID. |
3 |
|
4 |
Author: Nalin Dahyabhai <nalin@redhat.com> |
5 |
|
6 |
diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c |
7 |
index e6b17b4..fbf4829 100644 |
8 |
--- a/libraries/libldap/init.c |
9 |
+++ b/libraries/libldap/init.c |
10 |
@@ -678,7 +678,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl ) |
11 |
openldap_ldap_init_w_sysconf(LDAP_CONF_FILE); |
12 |
|
13 |
#ifdef HAVE_GETEUID |
14 |
- if ( geteuid() != getuid() ) |
15 |
+ if ( geteuid() != getuid() || getegid() != getgid() ) |
16 |
return; |
17 |
#endif |
18 |
|