From 5d143b1875825eb79328f2d10b0d6f67f8bcdeb5 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Sun, 25 Apr 2010 17:53:59 +0200 Subject: [PATCH] bug: Wrong generation of one_auth file (cherry picked from commit 8836e4dcb75e3ffcc4a9ed08b4a72b62a457739d) --- src/um/UserPool.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/um/UserPool.cc b/src/um/UserPool.cc index ccd2fb00c2..68512eddd9 100644 --- a/src/um/UserPool.cc +++ b/src/um/UserPool.cc @@ -72,7 +72,8 @@ UserPool::UserPool(SqliteDB * db):PoolSQL(db,User::table) string one_token; string one_name; string one_pass; - + string one_auth_file; + const char * one_auth; ifstream file; @@ -85,10 +86,10 @@ UserPool::UserPool(SqliteDB * db):PoolSQL(db,User::table) pw_ent = getpwuid(getuid()); 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