components/openldap/patches/04-ldapmodify.c.patch
author Enrico Perla <enrico.perla@oracle.com>
Fri, 04 Nov 2016 05:32:50 -0700
changeset 7245 934578b959f0
parent 5911 a8d897c4c442
permissions -rw-r--r--
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk 23118364 Enable ADIHEAP on security sensitive binaries 23118359 Build openssh as PIE

Fixes problem with ldapmodify doesn't operate as expected due to solaris renaming.
Patch was developed in-house; it is Solaris specific and
will not be contributed upstream.

--- openldap-2.4.44/clients/tools/ldapmodify.c.old	Tue Dec  1 15:57:11 2015
+++ openldap-2.4.44/clients/tools/ldapmodify.c	Tue Dec  1 15:58:52 2015
@@ -252,7 +252,8 @@
 	prog = lutil_progname( "ldapmodify", argc, argv );
 
 	/* strncmp instead of strcmp since NT binaries carry .exe extension */
-	ldapadd = ( strncasecmp( prog, "ldapadd", sizeof("ldapadd")-1 ) == 0 );
+	ldapadd = ( strncasecmp( prog, "ldapadd", sizeof("ldapadd")-1 ) == 0
+		|| strncasecmp( prog, "openldapadd", sizeof("openldapadd")-1 ) == 0 );
 
 	tool_init( ldapadd ? TOOL_ADD : TOOL_MODIFY );