/[smeserver]/rpms/cpu/sme8/cpu-1.4.3-empty-attr.patch
ViewVC logotype

Contents of /rpms/cpu/sme8/cpu-1.4.3-empty-attr.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Nov 6 03:56:49 2010 UTC (14 years ago) by slords
Branch: MAIN
CVS Tags: cpu-1_4_3-10_el5_sme, cpu-1_4_3-8_el5_sme, cpu-1_4_3-9_el5_sme, cpu-1_4_3-12_el5_sme, cpu-1_4_3-11_el5_sme, cpu-1_4_3-13_el5_sme, HEAD
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-8.sme
- If empty value is passed in assume that means delete [SME: 6342]

1 diff -up cpu-1.4.3/src/plugins/ldap/ld.c.empty-attr cpu-1.4.3/src/plugins/ldap/ld.c
2 --- cpu-1.4.3/src/plugins/ldap/ld.c.empty-attr 2010-11-05 21:18:12.000000000 -0600
3 +++ cpu-1.4.3/src/plugins/ldap/ld.c 2010-11-05 21:19:48.000000000 -0600
4 @@ -282,7 +282,10 @@ ldapBuildListStr (int mod_op, char *mod_
5 {
6 char **temp;
7
8 - if (value == NULL)
9 + if (mod_type == NULL || strlen(mod_type) == strspn(mod_type, " "))
10 + return mods;
11 +
12 + if (value == NULL || strlen(value) == strspn(value, " "))
13 return mods;
14
15 mods = ldapAddList (mods);

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed