ITS#8016 return errmsg for unknown envflags

This commit is contained in:
Howard Chu 2015-01-05 09:37:27 +00:00
parent 67a65ec701
commit 9266a43d6c

View File

@ -419,6 +419,9 @@ mdb_cf_gen( ConfigArgs *c )
mdb->mi_dbenv_flags ^= mdb_envflags[i].mask;
} else {
/* unknown keyword */
snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s: unknown keyword \"%s\"",
c->argv[0], c->argv[i] );
Debug( LDAP_DEBUG_CONFIG, "%s %s\n", c->log, c->cr_msg, 0 );
rc = 1;
}
}
@ -621,7 +624,10 @@ mdb_cf_gen( ConfigArgs *c )
mdb->mi_dbenv_flags |= mdb_envflags[j].mask;
} else {
/* unknown keyword */
rc = 1;
snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s: unknown keyword \"%s\"",
c->argv[0], c->argv[i] );
Debug( LDAP_DEBUG_ANY, "%s %s\n", c->log, c->cr_msg, 0 );
return 1;
}
}
}