]> git.sur5r.net Git - openldap/commitdiff
ATTRSONLY doesn't take a value (ITS#4146, #4266)
authorHoward Chu <hyc@openldap.org>
Tue, 20 Dec 2005 12:18:01 +0000 (12:18 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 20 Dec 2005 12:18:01 +0000 (12:18 +0000)
servers/slapd/syncrepl.c

index 2c8a68c143926b887ba6bb51a4d3bc93d297ad96..355171986f31728b3cc04db755efee93e57533c2 100644 (file)
@@ -2822,8 +2822,8 @@ parse_syncrepl_line(
                                Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->msg, 0 );
                                return -1;
                        }
-               } else if ( !strncasecmp( c->argv[ i ], ATTRSONLYSTR "=",
-                                       STRLENOF( ATTRSONLYSTR "=" ) ) )
+               } else if ( !strncasecmp( c->argv[ i ], ATTRSONLYSTR,
+                                       STRLENOF( ATTRSONLYSTR ) ) )
                {
                        si->si_attrsonly = 1;
                } else if ( !strncasecmp( c->argv[ i ], ATTRSSTR "=",
@@ -3218,7 +3218,7 @@ syncrepl_unparse( syncinfo_t *si, struct berval *bv )
                }
        }
        if ( si->si_attrsonly ) {
-               ptr = lutil_strcopy( ptr, " " ATTRSONLYSTR "=yes" );
+               ptr = lutil_strcopy( ptr, " " ATTRSONLYSTR );
        }
        if ( si->si_anfile ) {
                ptr = lutil_strcopy( ptr, " " ATTRSSTR "=:include:" );