/[smeserver]/rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-replace-logic.patch
ViewVC logotype

Annotation of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-replace-logic.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Dec 2 00:46:05 2010 UTC (14 years ago) by slords
Branch: MAIN
CVS Tags: e-smith-ldap-5_2_0-79_el5_sme, e-smith-ldap-5_2_0-81_el5_sme, e-smith-ldap-5_2_0-80_el5_sme, e-smith-ldap-5_2_0-76_el5_sme, e-smith-ldap-5_2_0-74_el5_sme, e-smith-ldap-5_2_0-77_el5_sme, e-smith-ldap-5_2_0-75_el5_sme, e-smith-ldap-5_2_0-78_el5_sme, HEAD
* Wed Dec 1 2010 Shad L. Lords <slord@mail.com> 5.2.0-74.sme
- Fix replace logic in ldif-fix [SME: 6423]

1 slords 1.1 diff -up e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix.replace-logic e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix
2     --- e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix.replace-logic 2010-12-01 17:37:38.000000000 -0700
3     +++ e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix 2010-12-01 17:44:45.000000000 -0700
4     @@ -355,13 +355,13 @@ while( not $reader->eof()) {
5     }
6     }
7    
8     - if (@donly && @donly == @lonly) {
9     - # If we are removing all ldap only attributes do a remove or full delete
10     + if (@donly && @donly == keys %lseen) {
11     + # If we are removing all ldap attributes do a remove or full delete
12     if (@uonly) {
13     $entry->replace($attr => [ @uonly ]);
14     }
15     else {
16     - $entry->delete($attr => [ @donly == keys %lseen ? () : @donly ]);
17     + $entry->delete($attr => []);
18     }
19     }
20     else {

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