]> git.sur5r.net Git - openldap/commitdiff
ITS#7256 Let slapmodify ignore unknown operations
authorOndrej Kuznik <ondrej.kuznik@acision.com>
Thu, 19 Apr 2012 14:05:35 +0000 (16:05 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Jul 2014 21:51:33 +0000 (16:51 -0500)
ldapmodify already does the same.

servers/slapd/slapmodify.c

index 791751687baa3713ade2b0db8af6712fcc93f219..41045021b7ca651e7896f4e3cc83d9a065cd87a9 100644 (file)
@@ -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 );