From 9ffe1df62622ca37d126e0f81aea97a515ef0ac4 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 15 Sep 2000 13:27:56 +0200 Subject: [PATCH] Video files now have the 'group read' bit set --- HISTORY | 5 ++++- config.h | 4 ++-- dvbapi.c | 6 +++--- videodir.c | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/HISTORY b/HISTORY index dafab3b7..fe07e0bc 100644 --- a/HISTORY +++ b/HISTORY @@ -167,4 +167,7 @@ Video Disk Recorder Revision History - When directly selecting a channel by entering the channel number, the digits entered so far together with the name of that channel are displayed on the OSD (suggested by Martin Hammerschmid). - + +2000-09-15: Version 0.64 + +- Video files now have the 'group read' bit set. diff --git a/config.h b/config.h index 30dd9bac..7a139585 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.19 2000/09/10 15:05:08 kls Exp $ + * $Id: config.h 1.20 2000/09/15 13:25:51 kls Exp $ */ #ifndef __CONFIG_H @@ -17,7 +17,7 @@ #include "dvbapi.h" #include "tools.h" -#define VDRVERSION "0.63" +#define VDRVERSION "0.64" #define MaxBuffer 10000 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); diff --git a/videodir.c b/videodir.c index 7bd6299a..91d362db 100644 --- a/videodir.c +++ b/videodir.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: videodir.c 1.1 2000/07/29 15:21:42 kls Exp $ + * $Id: videodir.c 1.2 2000/09/15 13:23:47 kls Exp $ */ #include "videodir.h" @@ -137,7 +137,7 @@ int OpenVideoFile(const char *FileName, int Flags) } } } - int Result = open(ActualFileName, Flags, S_IRUSR | S_IWUSR); + int Result = open(ActualFileName, Flags, S_IRUSR | S_IWUSR | S_IRGRP); if (ActualFileName != FileName) delete ActualFileName; return Result;