From 8836e4dcb75e3ffcc4a9ed08b4a72b62a457739d Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" <rubensm@dacya.ucm.es> Date: Sun, 25 Apr 2010 17:53:59 +0200 Subject: [PATCH] bug: Wrong generation of one_auth file --- src/um/UserPool.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/um/UserPool.cc b/src/um/UserPool.cc index f3c625bf97..42d2b3ebd3 100644 --- a/src/um/UserPool.cc +++ b/src/um/UserPool.cc @@ -61,6 +61,7 @@ UserPool::UserPool(SqlDB * db):PoolSQL(db,User::table) string one_token; string one_name; string one_pass; + string one_auth_file; const char * one_auth; ifstream file; @@ -75,9 +76,9 @@ UserPool::UserPool(SqlDB * db):PoolSQL(db,User::table) if ((pw_ent != NULL) && (pw_ent->pw_dir != NULL)) { - string one_auth_file = pw_ent->pw_dir; - + one_auth_file = pw_ent->pw_dir; one_auth_file += "/.one/one_auth"; + one_auth = one_auth_file.c_str(); } else