1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-09 09:57:48 +03:00

r12603: NO, I'm not claiming maintainership of this.

Fix bug 3351.

Volker
(This used to be commit 082763988d9b1ba1f543452aae47ad3e3be047ef)
This commit is contained in:
Volker Lendecke 2005-12-30 11:01:29 +00:00 committed by Gerald (Jerry) Carter
parent a74bc28e15
commit 1de83ea53b

View File

@ -536,13 +536,12 @@ char *sql_account_query_update(TALLOC_CTX *mem_ctx, const char *location, const
if (query->update) {
query->part1[strlen(query->part1) - 1] = '\0';
query->part1 =
talloc_asprintf_append(query->part1,
" WHERE %s = '%s'",
config_value_read(location,
"user sid column",
CONFIG_USER_SID_DEFAULT),
sid_to_string(sid_str, pdb_get_user_sid (newpwd)));
query->part1 = talloc_asprintf(
mem_ctx, "%s WHERE %s = '%s'", query->part1,
config_value_read(location,
"user sid column",
CONFIG_USER_SID_DEFAULT),
sid_to_string(sid_str, pdb_get_user_sid (newpwd)));
} else {
query->part2[strlen(query->part2) - 1] = ')';
query->part1[strlen(query->part1) - 1] = ')';