/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2004 The OpenLDAP Foundation.
+ * Copyright 2004-2005 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
int
slapdn( int argc, char **argv )
{
- int rc = EXIT_SUCCESS;
+ int rc = 0;
const char *progname = "slapdn";
-#ifdef NEW_LOGGING
- lutil_log_initialize( argc, argv );
-#endif
slap_tool_init( progname, SLAPDN, argc, argv );
argv = &argv[ optind ];
fprintf( stderr, "DN: <%s> check failed %d (%s)\n",
dn.bv_val, rc,
ldap_err2string( rc ) );
- rc = 1;
+ if ( !continuemode ) {
+ rc = -1;
+ break;
+ }
} else {
fprintf( stderr, "DN: <%s> check succeeded\n"
ndn.bv_val, pdn.bv_val );
ch_free( ndn.bv_val );
ch_free( pdn.bv_val );
- rc = 0;
}
}