Browse Source

Set more permissive permissions in spool directory

In the rtpengine spool directory, when we create the "pcaps" and
"metadata" inner directories, we now give all users read and write
privileges to them, instead of just the owner and the group having those
permissions.
pull/245/head
Dylan Mikus 10 years ago
committed by Eric Green
parent
commit
d604ff6fd3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/recording.c

+ 2
- 2
daemon/recording.c View File

@ -75,7 +75,7 @@ int maybe_create_spool_dir(char *spoolpath) {
if (stat(meta_path, &info) != 0) {
fprintf(stdout, "Creating metadata directory \"%s\".\n", meta_path);
mkdir(meta_path, 0660);
mkdir(meta_path, 0777);
} else if(!S_ISDIR(info.st_mode)) {
fprintf(stderr, "metadata file exists, but \"%s\" is not a directory.\n", meta_path);
spool_good = FALSE;
@ -83,7 +83,7 @@ int maybe_create_spool_dir(char *spoolpath) {
if (stat(rec_path, &info) != 0) {
fprintf(stdout, "Creating pcaps directory \"%s\".\n", rec_path);
mkdir(rec_path, 0660);
mkdir(rec_path, 0777);
} else if(!S_ISDIR(info.st_mode)) {
fprintf(stderr, "pcaps file exists, but \"%s\" is not a directory.\n", rec_path);
spool_good = FALSE;


Loading…
Cancel
Save