1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

bug: Wrong generation of one_auth file

(cherry picked from commit 8836e4dcb75e3ffcc4a9ed08b4a72b62a457739d)
This commit is contained in:
Ruben S. Montero 2010-04-25 17:53:59 +02:00
parent 72f596b187
commit 5d143b1875

View File

@ -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