Neither stream nor file should require 0777 use 0644 instead, closes #1962.
This commit is contained in:
parent
342d0e7799
commit
d298dec2e9
2 changed files with 2 additions and 2 deletions
|
@ -377,7 +377,7 @@ pass_muxer_open_file(muxer_t *m, const char *filename)
|
|||
int fd;
|
||||
pass_muxer_t *pm = (pass_muxer_t*)m;
|
||||
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0777);
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
||||
if(fd < 0) {
|
||||
pm->pm_error = errno;
|
||||
tvhlog(LOG_ERR, "pass", "%s: Unable to create file, open failed -- %s",
|
||||
|
|
|
@ -1041,7 +1041,7 @@ mk_mux_open_file(mk_mux_t *mkm, const char *filename)
|
|||
{
|
||||
int fd;
|
||||
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0777);
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
||||
if(fd < 0) {
|
||||
mkm->error = errno;
|
||||
tvhlog(LOG_ERR, "mkv", "%s: Unable to create file, open failed -- %s",
|
||||
|
|
Loading…
Add table
Reference in a new issue