From e6f624b48a3d46fc15c04c6be82319cf2f54c7be Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 20 Dec 2005 12:18:01 +0000 Subject: [PATCH] ATTRSONLY doesn't take a value (ITS#4146, #4266) --- servers/slapd/syncrepl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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:" ); -- 2.39.5