The Samba-Bugzilla – Attachment 1637 Details for
Bug 3351
pdb_mysql again overwrites password fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bugfix
sql.diff (text/plain), 875 bytes, created by
Volker Lendecke
on 2005-12-30 04:04:18 UTC
(
hide
)
Description:
Bugfix
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2005-12-30 04:04:18 UTC
Size:
875 bytes
patch
obsolete
>Index: passdb/pdb_sql.c >=================================================================== >--- passdb/pdb_sql.c (Revision 12601) >+++ passdb/pdb_sql.c (Arbeitskopie) >@@ -536,13 +536,12 @@ > > 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] = ')';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3351
: 1637