fixing path to realPath

Signed-off-by: samhu1989 <hsy19891228@yeah.net>
This commit is contained in:
samhu1989 2024-06-22 17:20:43 +03:00
parent 62905ee7c9
commit 3d7a02c147

View File

@ -44,7 +44,7 @@ bool DrawingSampleReplayer::ReadCmds(const std::string path)
std::cout << "PathToRealPath fails on: " << path;
return false;
}
UniqueFd fd(open(path.c_str(), O_RDONLY));
UniqueFd fd(open(realPath.c_str(), O_RDONLY));
if (fd <= 0) {
return false;
}