From: Howard Chu Date: Tue, 20 Dec 2005 12:18:01 +0000 (+0000) Subject: ATTRSONLY doesn't take a value (ITS#4146, #4266) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~549 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6f624b48a3d46fc15c04c6be82319cf2f54c7be;p=openldap ATTRSONLY doesn't take a value (ITS#4146, #4266) --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 2c8a68c143..355171986f 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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:" );