Author: rhafer Date: Fri Jun 27 15:57:34 2008 New Revision: 48604 URL: http://svn.opensuse.org/viewcvs/yast?rev=48604&view=rev Log: Only issue Modify Request if ModList is not empty Modified: trunk/ldap-server/src/lib/backConfigTest.cpp Modified: trunk/ldap-server/src/lib/backConfigTest.cpp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/lib/backConfigTest.cpp?rev=48604&r1=48603&r2=48604&view=diff ============================================================================== --- trunk/ldap-server/src/lib/backConfigTest.cpp (original) +++ trunk/ldap-server/src/lib/backConfigTest.cpp Fri Jun 27 15:57:34 2008 @@ -617,7 +617,11 @@ { try { LDAPModList ml = oce.entryDifftoMod(); - m_lc->modify( oce.getDn(), &ml ); + if ( ! ml.empty() ) { + m_lc->modify( oce.getDn(), &ml ); + } else { + std::cout << oce.getDn() << ": no changes" << std::endl; + } } catch (LDAPException e) { std::cout << e << std::endl; throw; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org