summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-09-15 13:27:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-09-15 13:27:56 +0200
commit9ffe1df62622ca37d126e0f81aea97a515ef0ac4 (patch)
treefbd865aa2b09bd439230ad35cef905edc3f4246c /dvbapi.c
parent72642d67a1f40a53a99ad7974e783a2b3d82a8ef (diff)
downloadvdr-9ffe1df62622ca37d126e0f81aea97a515ef0ac4.tar.gz
vdr-9ffe1df62622ca37d126e0f81aea97a515ef0ac4.tar.bz2
Video files now have the 'group read' bit set
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 9f9cbab4..6c08e065 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.24 2000/09/10 10:25:09 kls Exp $
+ * $Id: dvbapi.c 1.25 2000/09/15 13:23:00 kls Exp $
*/
#include "dvbapi.h"
@@ -139,7 +139,7 @@ cIndexFile::cIndexFile(const char *FileName, bool Record)
LOG_ERROR;
}
if (Record) {
- if ((f = open(fileName, O_WRONLY | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR)) >= 0) {
+ if ((f = open(fileName, O_WRONLY | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR | S_IRGRP)) >= 0) {
if (delta) {
esyslog(LOG_ERR, "ERROR: padding index file with %d '0' bytes", delta);
while (delta--)
@@ -297,7 +297,7 @@ int cIndexFile::Get(uchar FileNumber, int FileOffset)
bool cIndexFile::StoreResume(int Index)
{
if (fileName) {
- int resumeFile = open(fileName, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
+ int resumeFile = open(fileName, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP);
if (resumeFile >= 0) {
if (write(resumeFile, &Index, sizeof(Index)) != sizeof(Index))
LOG_ERROR_STR(fileName);