From: Bernhard Schuster Date: Thu, 6 Mar 2014 22:06:15 +0000 (+0100) Subject: Neither stream nor file should require 0777 use 0644 instead, closes #1962. X-Git-Tag: v4.1~2239^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d298dec2e9b1d11c3cefb1bf677836d5e9af5165;p=thirdparty%2Ftvheadend.git Neither stream nor file should require 0777 use 0644 instead, closes #1962. --- diff --git a/src/muxer/muxer_pass.c b/src/muxer/muxer_pass.c index 3acf51a08..ae9b781b3 100644 --- a/src/muxer/muxer_pass.c +++ b/src/muxer/muxer_pass.c @@ -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", diff --git a/src/muxer/tvh/mkmux.c b/src/muxer/tvh/mkmux.c index 1068525b0..4925039d8 100644 --- a/src/muxer/tvh/mkmux.c +++ b/src/muxer/tvh/mkmux.c @@ -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",