mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Video files now have the 'group read' bit set
This commit is contained in:
parent
72642d67a1
commit
9ffe1df626
3
HISTORY
3
HISTORY
@ -168,3 +168,6 @@ Video Disk Recorder Revision History
|
||||
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.
|
||||
|
4
config.h
4
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
|
||||
|
||||
|
6
dvbapi.c
6
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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user