Misc changes

This commit is contained in:
snake-4
2024-05-03 01:25:08 +02:00
parent 0e77d8385d
commit b6603b12c2
2 changed files with 21 additions and 28 deletions

View File

@@ -39,7 +39,7 @@ int Utils::isUserAppUID(int uid)
bool Utils::switchMountNS(int pid)
{
std::string path = std::string("/proc/") + std::to_string(pid) + "/ns/mnt";
std::string path = "/proc/" + std::to_string(pid) + "/ns/mnt";
int ret, fd;
if ((fd = open(path.c_str(), O_RDONLY)) < 0)
{