mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 09:05:59 +01:00
hooksystem: check for existing random outdir
This commit is contained in:
parent
335015fe2d
commit
95a5e75c26
1 changed files with 7 additions and 1 deletions
|
@ -140,7 +140,13 @@ CFunctionHook::SAssembly CFunctionHook::fixInstructionProbeRIPCalls(const SInstr
|
||||||
|
|
||||||
const auto RANDOMDIR = "/tmp/hypr/" + g_pTokenManager->getRandomUUID();
|
const auto RANDOMDIR = "/tmp/hypr/" + g_pTokenManager->getRandomUUID();
|
||||||
|
|
||||||
mkdir(RANDOMDIR.c_str(), S_IRWXU);
|
if (std::filesystem::exists(RANDOMDIR)) {
|
||||||
|
Debug::log(ERR, "[hooksystem] random out dir exists??");
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mkdir(RANDOMDIR.c_str(), S_IRWXU) < 0)
|
||||||
|
return {};
|
||||||
|
|
||||||
if (!std::filesystem::exists(RANDOMDIR))
|
if (!std::filesystem::exists(RANDOMDIR))
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Reference in a new issue