From c1888c2b0e376338b463b8bf2c05f8f39f2c6955 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 2 Feb 2010 15:20:40 +0100 Subject: [PATCH] client: inhibit resetpassword.c --- client/resetpassword.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/resetpassword.c b/client/resetpassword.c index f03b24f..26c5712 100644 --- a/client/resetpassword.c +++ b/client/resetpassword.c @@ -103,9 +103,13 @@ int main(int argc, char **argv) { if (db_owner_info && db_user_info) { char *token = NULL; /* Try some invalid invocation that should fail */ +#if 0 reset_password(ctx, db_owner_info, db_user_info, 0, NULL); reset_password(ctx, db_owner_info, db_user_info, 1, NULL); reset_password(ctx, db_owner_info, db_user_info, 1, &token); +#endif + fprintf(stderr, "This function can lose current user credentials. " + "DO NOT TRY IT!\n"); free(token); } -- 2.11.4.GIT