fix: unix platform auth create key file not in directory.

Signed-off-by: TaowerfulMAX <liurantao@huawei.com>
This commit is contained in:
TaowerfulMAX 2024-07-29 16:47:34 +08:00
parent 68f5fd51a3
commit 6c30dad33f

View File

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