26 Jun
2006
26 Jun
'06
4:26 p.m.
On Mon, 2006-06-26 at 16:58 +0400, Andrey Panin wrote:
- MEMBER(update_query) "UPDATE users SET password = '%c' WHERE userid = '%u'", ..
- buf = buffer_create_dynamic(unsafe_data_stack_pool, 128);
- tmp.key = 'c';
- tmp.value = new_credentials;
- buffer_append(buf, &tmp, sizeof(tmp));
- tab = auth_request_get_var_expand_table(request, passdb_sql_escape);
- do {
buffer_append(buf, tab++, sizeof(*tab));
- } while (tab->key != '\0');
I haven't looked at the patches too closely yet, but how about using the existing %w instead of adding a new %c?
Otherwise looks good. Well, except PASSS could be changed to something else :) SETCRED maybe.