|
1 Fixes problem with openldap calling fopen() without F flag. |
|
2 Patch was developed in-house; it is Solaris specific and |
|
3 will not be contributed upstream. |
|
4 |
|
5 --- openldap-2.4.44/libraries/liblber/debug.c.old Wed Feb 24 13:31:09 2016 |
|
6 +++ openldap-2.4.44/libraries/liblber/debug.c Wed Feb 24 13:31:32 2016 |
|
7 @@ -53,10 +53,10 @@ |
|
8 |
|
9 #ifdef HAVE_WINSOCK |
|
10 if( log_file == NULL ) { |
|
11 - log_file = fopen( LDAP_RUNDIR LDAP_DIRSEP "openldap.log", "w" ); |
|
12 + log_file = fopen( LDAP_RUNDIR LDAP_DIRSEP "openldap.log", "wF" ); |
|
13 |
|
14 if ( log_file == NULL ) { |
|
15 - log_file = fopen( "openldap.log", "w" ); |
|
16 + log_file = fopen( "openldap.log", "wF" ); |
|
17 if ( log_file == NULL ) return; |
|
18 } |
|
19 |
|
20 --- openldap-2.4.44/libraries/libldap/fetch.c.old Wed Feb 24 13:31:41 2016 |
|
21 +++ openldap-2.4.44/libraries/libldap/fetch.c Wed Feb 24 13:31:55 2016 |
|
22 @@ -79,7 +79,7 @@ |
|
23 |
|
24 ldap_pvt_hex_unescape( p ); |
|
25 |
|
26 - url = fopen( p, "rb" ); |
|
27 + url = fopen( p, "rbF" ); |
|
28 |
|
29 ber_memfree( p ); |
|
30 } else { |
|
31 |
|
32 --- openldap-2.4.44/libraries/libldap/init.c.old Wed Feb 24 13:32:07 2016 |
|
33 +++ openldap-2.4.44/libraries/libldap/init.c Wed Feb 24 13:32:19 2016 |
|
34 @@ -167,7 +167,7 @@ |
|
35 |
|
36 Debug(LDAP_DEBUG_TRACE, "ldap_init: trying %s\n", file, 0, 0); |
|
37 |
|
38 - fp = fopen(file, "r"); |
|
39 + fp = fopen(file, "rF"); |
|
40 if(fp == NULL) { |
|
41 /* could not open file */ |
|
42 return; |