From: Ondrej Kuznik Date: Thu, 19 Apr 2012 14:05:35 +0000 (+0200) Subject: ITS#7256 Let slapmodify ignore unknown operations X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~141^2~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7810dccdff28638d7e3175f4cc8b4e3e0430302c;p=thirdparty%2Fopenldap.git 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 );