mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 23:20:43 +00:00
fix: unix platform auth create key file not in directory.
Signed-off-by: TaowerfulMAX <liurantao@huawei.com>
This commit is contained in:
parent
68f5fd51a3
commit
6c30dad33f
@ -259,6 +259,8 @@ int GetUserKeyPath(string &path)
|
||||
path = Base::CanonicalizeSpecPath(dir);
|
||||
if (path.empty()) {
|
||||
path = dir;
|
||||
} else {
|
||||
path += Base::GetPathSep(); // bugfix for unix platform create key file not in dir.
|
||||
}
|
||||
if (stat(path.c_str(), &status)) {
|
||||
uv_fs_t req;
|
||||
|
Loading…
Reference in New Issue
Block a user