summaryrefslogtreecommitdiff
path: root/databases/nss_ldap/patches
diff options
context:
space:
mode:
authortaca <taca>2008-04-01 01:39:24 +0000
committertaca <taca>2008-04-01 01:39:24 +0000
commitac83b3ed394d3707163b54b05359b9802b81589d (patch)
treeb9d5cbf52a204671c26642a0bff085318bb9b7c9 /databases/nss_ldap/patches
parente656e25ad2ea4bff5e13e41e456133fe1a046c88 (diff)
downloadpkgsrc-ac83b3ed394d3707163b54b05359b9802b81589d.tar.gz
Update nss_ldap package to 260 based on PR pkg/38346 from Taku YASUI.
This update includes security fix for CVE-2007-5794. Changes from 240 is too much to list here. See ChangeLog, please.
Diffstat (limited to 'databases/nss_ldap/patches')
-rw-r--r--databases/nss_ldap/patches/patch-ab17
-rw-r--r--databases/nss_ldap/patches/patch-af71
-rw-r--r--databases/nss_ldap/patches/patch-ah13
3 files changed, 60 insertions, 41 deletions
diff --git a/databases/nss_ldap/patches/patch-ab b/databases/nss_ldap/patches/patch-ab
index 32d5d853b31..470ccd907dd 100644
--- a/databases/nss_ldap/patches/patch-ab
+++ b/databases/nss_ldap/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1.1.1 2005/08/08 09:47:42 drochner Exp $
+$NetBSD: patch-ab,v 1.2 2008/04/01 01:39:24 taca Exp $
---- ldap-nss.c.orig 2005-07-26 23:00:16.000000000 +0200
-+++ ldap-nss.c
-@@ -33,6 +33,7 @@ static char rcsId[] =
+--- ldap-nss.c.orig 2008-03-04 19:05:12.000000000 +0900
++++ ldap-nss.c 2008-03-31 13:28:07.000000000 +0900
+@@ -33,6 +33,7 @@
#include <pthread.h>
#endif
@@ -10,3 +10,12 @@ $NetBSD: patch-ab,v 1.1.1.1 2005/08/08 09:47:42 drochner Exp $
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
+@@ -1258,8 +1259,6 @@
+ __pid = pid;
+ else
+ __libc_once (__once, do_atfork_setup);
+-#else
+- __pid = pid;
+ #endif
+
+ __euid = euid;
diff --git a/databases/nss_ldap/patches/patch-af b/databases/nss_ldap/patches/patch-af
index c49adfaea96..97e50e71293 100644
--- a/databases/nss_ldap/patches/patch-af
+++ b/databases/nss_ldap/patches/patch-af
@@ -1,34 +1,57 @@
-$NetBSD: patch-af,v 1.3 2005/09/19 16:13:26 drochner Exp $
+$NetBSD: patch-af,v 1.4 2008/04/01 01:39:24 taca Exp $
---- Makefile.in.orig 2005-09-18 19:47:08.000000000 +0100
-+++ Makefile.in
-@@ -75,14 +75,14 @@ nss_ldap_so_LD = @nss_ldap_so_LD@
- noinst_PROGRAMS = nss_ldap.so $(authmod)
+--- Makefile.in.orig 2008-03-04 19:05:12.000000000 +0900
++++ Makefile.in 2008-03-31 13:05:46.000000000 +0900
+@@ -60,7 +60,7 @@
+ util.$(OBJEXT) ltf.$(OBJEXT) snprintf.$(OBJEXT) \
+ resolve.$(OBJEXT) dnsconfig.$(OBJEXT) irs-nss.$(OBJEXT) \
+ pagectrl.$(OBJEXT) aix_authmeth.$(OBJEXT) \
+- ldap-init-krb5-cache.$(OBJEXT)
++ ldap-init-krb5-cache.$(OBJEXT) netbsd.$(OBJEXT)
+ NSS_LDAP_OBJECTS = $(am_NSS_LDAP_OBJECTS)
+ NSS_LDAP_LDADD = $(LDADD)
+ am_nss_ldap_so_OBJECTS = ldap-nss.$(OBJEXT) ldap-pwd.$(OBJEXT) \
+@@ -72,7 +72,7 @@
+ ldap-automount.$(OBJEXT) util.$(OBJEXT) ltf.$(OBJEXT) \
+ snprintf.$(OBJEXT) resolve.$(OBJEXT) dnsconfig.$(OBJEXT) \
+ irs-nss.$(OBJEXT) pagectrl.$(OBJEXT) ldap-sldap.$(OBJEXT) \
+- ldap-init-krb5-cache.$(OBJEXT)
++ ldap-init-krb5-cache.$(OBJEXT) netbsd.$(OBJEXT)
+ nss_ldap_so_OBJECTS = $(am_nss_ldap_so_OBJECTS)
+ nss_ldap_so_LDADD = $(LDADD)
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
+@@ -201,7 +201,7 @@
+ @AIX_FALSE@authmod =
+ @AIX_TRUE@authmod = NSS_LDAP
INST_UID = root
- @AIX_TRUE@INST_GID = system
-@AIX_FALSE@INST_GID = root
+@AIX_FALSE@INST_GID = wheel
+ @AIX_TRUE@INST_GID = system
+ EXTRA_DIST = CVSVersionInfo.txt ChangeLog \
+ AUTHORS ANNOUNCE NEWS INSTALL README LICENSE.OpenLDAP COPYING\
+@@ -212,11 +212,11 @@
+ ldap-hosts.c ldap-network.c ldap-proto.c ldap-spwd.c \
+ ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c \
+ ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c \
+- dnsconfig.c irs-nss.c pagectrl.c ldap-sldap.c ldap-init-krb5-cache.c
++ dnsconfig.c irs-nss.c pagectrl.c ldap-sldap.c ldap-init-krb5-cache.c netbsd.c
- EXTRA_DIST = CVSVersionInfo.txt ChangeLog AUTHORS ANNOUNCE NEWS INSTALL README LICENSE.OpenLDAP COPYING ldap.conf nss_ldap.spec nsswitch.ldap
-
-
- man_MANS = nss_ldap.5
-
--nss_ldap_so_SOURCES = ldap-nss.c ldap-pwd.c ldap-grp.c ldap-netgrp.c ldap-rpc.c ldap-hosts.c ldap-network.c ldap-proto.c ldap-spwd.c ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c dnsconfig.c irs-nss.c pagectrl.c
-+nss_ldap_so_SOURCES = ldap-nss.c ldap-pwd.c ldap-grp.c ldap-netgrp.c ldap-rpc.c ldap-hosts.c ldap-network.c ldap-proto.c ldap-spwd.c ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c dnsconfig.c irs-nss.c pagectrl.c netbsd.c
+ NSS_LDAP_SOURCES = ldap-nss.c ldap-grp.c ldap-pwd.c ldap-netgrp.c ldap-schema.c \
+ util.c ltf.c snprintf.c resolve.c dnsconfig.c \
+- irs-nss.c pagectrl.c aix_authmeth.c ldap-init-krb5-cache.c
++ irs-nss.c pagectrl.c aix_authmeth.c ldap-init-krb5-cache.c netbsd.c
+ @GCC_FALSE@MULTI_OS_DIRECTORY = .
+ #INCLUDES = -I$(top_builddir) -I$(srcdir)
+@@ -327,6 +327,7 @@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resolve.Po@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snprintf.Po@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netbsd.Po@am__quote@
- nss_ldap_so_LDFLAGS = @nss_ldap_so_LDFLAGS@
-@@ -122,7 +122,7 @@ nss_ldap_so_OBJECTS = ldap-nss.o ldap-p
- ldap-rpc.o ldap-hosts.o ldap-network.o ldap-proto.o ldap-spwd.o \
- ldap-alias.o ldap-service.o ldap-schema.o ldap-ethers.o ldap-bp.o \
- ldap-automount.o util.o ltf.o snprintf.o resolve.o dnsconfig.o \
--irs-nss.o pagectrl.o
-+irs-nss.o pagectrl.o netbsd.o
- nss_ldap_so_LDADD = $(LDADD)
- nss_ldap_so_DEPENDENCIES =
- NSS_LDAP_OBJECTS = ldap-nss.o ldap-grp.o ldap-pwd.o ldap-netgrp.o \
-@@ -498,10 +498,8 @@ maintainer-clean-generic clean mostlycle
+ .c.o:
+ @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@@ -688,10 +689,8 @@
install-data-local:
@$(NORMAL_INSTALL)
diff --git a/databases/nss_ldap/patches/patch-ah b/databases/nss_ldap/patches/patch-ah
deleted file mode 100644
index fcc5fefb7fc..00000000000
--- a/databases/nss_ldap/patches/patch-ah
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ah,v 1.3 2007/08/10 17:14:40 drochner Exp $
-
---- ldap-pwd.c.orig 2007-08-09 19:20:45.000000000 +0200
-+++ ldap-pwd.c
-@@ -185,7 +185,7 @@ _nss_ldap_parse_pw (LDAPMessage * e,
- _nss_ldap_assign_attrval (e, AT (shadowLastChange), &tmp, &buffer,
- &buflen);
- if (stat == NSS_SUCCESS)
-- pw->pw_change += atol(tmp);
-+ pw->pw_change += atol(tmp) * (24*60*60);
- else
- pw->pw_change = 0;
- }