From: Ondrej Kuznik Date: Thu, 19 Apr 2012 14:05:35 +0000 (+0200) Subject: ITS#7256 Let slapmodify ignore unknown operations X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=684fd621d0936c445609f23855e295dc5c4de109;p=openldap ITS#7256 Let slapmodify ignore unknown operations ldapmodify already does the same. --- diff --git a/servers/slapd/slapmodify.c b/servers/slapd/slapmodify.c index 791751687b..41045021b7 100644 --- a/servers/slapd/slapmodify.c +++ b/servers/slapd/slapmodify.c @@ -194,11 +194,8 @@ slapmodify( int argc, char **argv ) goto done; default: - fprintf( stderr, "%s: unknown request 0x%lx (line=%lu)\n", - progname, (unsigned long)lr.lr_op, lineno ); - rc = EXIT_FAILURE; - if( continuemode ) continue; - goto done; + /* record skipped e.g. version: or comment or something we don't handle yet */ + continue; } local_rc = dnNormalize( 0, NULL, NULL, &lr.lr_dn, &ndn, NULL );