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

bug: Wrong generation of one_auth file

This commit is contained in:
Ruben S. Montero 2010-04-25 17:53:59 +02:00
parent f551d5bb5b
commit 8836e4dcb7

View File

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