Added tmpwork functions
This commit is contained in:
parent
97a1a26752
commit
1ffccd820f
@ -70,6 +70,7 @@ int create_tmpwork(void)
|
|||||||
|
|
||||||
if (! is_tmpwork) {
|
if (! is_tmpwork) {
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
|
getcwd(buf, PATH_MAX);
|
||||||
snprintf(temp, PATH_MAX, "%s/tmp/arc%d", getenv("MBSE_ROOT"), (int)getpid());
|
snprintf(temp, PATH_MAX, "%s/tmp/arc%d", getenv("MBSE_ROOT"), (int)getpid());
|
||||||
|
|
||||||
if (! mkdirs(temp, 0755))
|
if (! mkdirs(temp, 0755))
|
||||||
|
Reference in New Issue
Block a user