Skip to content

Commit

Permalink
Open up sub-directory group write permissions
Browse files Browse the repository at this point in the history
Scripts processing the files added to the "archivedir" directory may actually
want to remove files that have been processed.  Extend the "group" privs to allow
removing files.

Note: ownership of the "archivedir" dirs/files will be "asterisk:asterisk"
  • Loading branch information
Allan-N committed Jul 4, 2024
1 parent a129379 commit de28e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/app_rpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -4735,7 +4735,7 @@ static void *rpt(void *this)
if (myrpt->p.archivedir)
mkdir(myrpt->p.archivedir, 0700);
sprintf(tmpstr, "%s/%s", myrpt->p.archivedir, myrpt->name);
mkdir(tmpstr, 0755);
mkdir(tmpstr, 0775);
myrpt->ready = 0;
rpt_mutex_lock(&myrpt->lock);
myrpt->remrx = 0;
Expand Down Expand Up @@ -7032,7 +7032,7 @@ static int rpt_exec(struct ast_channel *chan, const char *data)

mkdir(myrpt->p.archivedir, 0700);
sprintf(mycmd, "%s/%s", myrpt->p.archivedir, myrpt->name);
mkdir(mycmd, 0755);
mkdir(mycmd, 0775);
time(&myt);
strftime(mydate, sizeof(mydate) - 1, "%Y%m%d%H%M%S", localtime(&myt));
sprintf(mycmd, "mixmonitor start %s %s/%s/%s.wav49 a", ast_channel_name(chan), myrpt->p.archivedir, myrpt->name,
Expand Down

0 comments on commit de28e48

Please sign in to comment.