]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/modify.c
trim listed modules
[openldap] / servers / slapd / back-shell / modify.c
index 2115217a4d53779ae431957d03f5e2702b06a064..277c3c1dcd502fec0ffae5fbfe7a493f5815d84c 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -103,10 +103,10 @@ shell_back_modify(
                        break;
                }
 
-               if( mod->sm_bvalues != NULL ) {
-                       for ( i = 0; mod->sm_bvalues[i].bv_val != NULL; i++ ) {
+               if( mod->sm_values != NULL ) {
+                       for ( i = 0; mod->sm_values[i].bv_val != NULL; i++ ) {
                                fprintf( wfp, "%s: %s\n", mod->sm_desc->ad_cname.bv_val,
-                                       mod->sm_bvalues[i].bv_val /* binary! */ );
+                                       mod->sm_values[i].bv_val /* binary! */ );
                        }
                }