From 5597911fbf26237b9d11a0f6293e4b52b2d9069c Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 18 May 2017 14:26:02 +0200 Subject: csource: use tmp dir only when necessary --- executor/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index 92467dc26..99c3fb9f3 100644 --- a/executor/common.h +++ b/executor/common.h @@ -175,6 +175,7 @@ static void install_segv_handler() sigaction(SIGBUS, &sa, NULL); } +#if defined(SYZ_EXECUTOR) || defined(SYZ_USE_TMP_DIR) static void use_temporary_dir() { char tmpdir_template[] = "./syzkaller.XXXXXX"; @@ -186,6 +187,7 @@ static void use_temporary_dir() if (chdir(tmpdir)) fail("failed to chdir"); } +#endif #define NONFAILING(...) \ { \ -- cgit mrf-deployment