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:
parent
f551d5bb5b
commit
8836e4dcb7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user