mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-12 10:35:46 -07:00
hooksystem: check for existing random outdir
This commit is contained in:
@@ -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 {};
|
||||||
|
Reference in New Issue
Block a user