]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Neither stream nor file should require 0777 use 0644 instead, closes #1962. 337/head
authorBernhard Schuster <schuster.bernhard@gmail.com>
Thu, 6 Mar 2014 22:06:15 +0000 (23:06 +0100)
committerBernhard Schuster <schuster.bernhard@gmail.com>
Thu, 6 Mar 2014 22:46:16 +0000 (23:46 +0100)
src/muxer/muxer_pass.c
src/muxer/tvh/mkmux.c

index 3acf51a08492b8601351a1cce157eec95f5592cd..ae9b781b3f094e2328572356bc04786c5bae3de3 100644 (file)
@@ -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",
index 1068525b0dd9713b6168abdab2aae4b8e81b638a..4925039d8e15ac9f8ea62b047a655ae505a77c6e 100644 (file)
@@ -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",