diff --git a/lib/tmpwork.c b/lib/tmpwork.c index 3d4e0872..6de7da87 100644 --- a/lib/tmpwork.c +++ b/lib/tmpwork.c @@ -70,6 +70,7 @@ int create_tmpwork(void) if (! is_tmpwork) { temp = calloc(PATH_MAX, sizeof(char)); + getcwd(buf, PATH_MAX); snprintf(temp, PATH_MAX, "%s/tmp/arc%d", getenv("MBSE_ROOT"), (int)getpid()); if (! mkdirs(temp, 0755))