mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-28 10:13:44 +03:00
hooksystem: check for existing random outdir
This commit is contained in:
parent
335015fe2d
commit
95a5e75c26
@ -140,7 +140,13 @@ CFunctionHook::SAssembly CFunctionHook::fixInstructionProbeRIPCalls(const SInstr
|
||||
|
||||
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))
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user