File: 001-ldap-deprecated.patch

package info (click to toggle)
proxy-suite 1.9.2.4-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,060 kB
  • sloc: ansic: 6,533; sh: 2,968; makefile: 285
file content (33 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: dann frazier <dannf@debian.org>
Subject: ldap_init, ldap_get_values implicitly converted to pointers
 Our automated buildd log filter[1] detected a problem that is likely to
 cause your package to segfault on architectures where the size of a
 pointer is greater than the size of an integer, such as ia64 and amd64.
 .
 This is often due to a missing function prototype definition.
 For more information, see [2].
 .
 [1] http://people.debian.org/~dannf/check-implicit-pointer-functions
 [2] http://wiki.debian.org/ImplicitPointerConversions
 .
 Function `ldap_init' implicitly converted to pointer at ftp-ldap.c:212
 Function `ldap_get_values' implicitly converted to pointer at ftp-ldap.c:927
 .
 The libldap API has been updated and many functions used by the ldap
 plugin are now deprecated. This package should either update to the
 new API or define LDAP_DEPRECATED to continue using the deprecated
 interfaces.
 .
 This patch implements the lazy solution.
Bug-Debian: https://bugs.debian.org/463360

--- proxy-suite-1.9.2.4.orig/ftp-proxy/ftp-ldap.c
+++ proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c
@@ -70,6 +70,7 @@ static char rcsid[] = "$Id: ftp-ldap.c,v
 #  if defined(HAVE_LDAP_UMICH)
 #    include <lber.h>
 #  endif
+#  define LDAP_DEPRECATED	1
 #  include <ldap.h>
 #  if !defined(LDAP_PORT)
 #    define LDAP_PORT		389