ATTRSONLY doesn't take a value (ITS#4146, #4266)

This commit is contained in:
Howard Chu 2005-12-20 12:18:01 +00:00
parent 3517bdf260
commit e6f624b48a

View File

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