Skip to content

Commit

Permalink
Update fps_create.c
Browse files Browse the repository at this point in the history
Could we put the datadir and confdir of a FPS in /tmp ?
  • Loading branch information
a-sevin authored Dec 20, 2023
1 parent 64b229c commit f6b7586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/COREMOD_memory/fps_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ errno_t function_parameter_struct_create(
fps.md->sourceline = 0;

// set default fpsdatadir
snprintf(fps.md->datadir, FPS_DIR_STRLENMAX, "fps.%s.datadir", fps.md->name);
snprintf(fps.md->datadir, FPS_DIR_STRLENMAX, "/tmp/fps.%s.datadir", fps.md->name);
// and create the directory
mkdir(fps.md->datadir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);

// set default fpsconfdir
snprintf(fps.md->confdir, FPS_DIR_STRLENMAX, "fps.%s.confdir", fps.md->name);
snprintf(fps.md->confdir, FPS_DIR_STRLENMAX, "/tmp/fps.%s.confdir", fps.md->name);
// and create the directory
mkdir(fps.md->confdir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);

Expand Down

0 comments on commit f6b7586

Please sign in to comment.