/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1999-2005 The OpenLDAP Foundation.
+ * Copyright 1999-2006 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
if ( mapping[0].m_dst_oc == NULL ) {
fprintf( stderr, "%s: line %d: unable to mimic destination objectClass '%s'\n",
fname, lineno, dst );
- return 1;
+ goto error_return;
}
#if 0
fprintf( stderr,
"%s: line %d: source attributeType '%s': %d (%s)\n",
fname, lineno, src, rc, text ? text : "null" );
- return 1;
+ goto error_return;
}
}
fprintf( stderr,
"%s: line %d: destination attributeType '%s': %d (%s)\n",
fname, lineno, dst, rc, text ? text : "null" );
- return 1;
+ goto error_return;
}
}
mapping[1].m_src_ad = mapping[0].m_dst_ad;
int i;
if ( s[0] == '\0' ) {
- return ch_strdup( "(.+)" );
+ return ch_strdup( "^(.+)$" );
}
for ( i = 0, p = s;