Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: osdteletext plugin - file permissions



bernd_muc@gmx.de wrote:
Hello,

yesterday I tried to install the osdteletext plugin and I a problem:

The files in /tmp/vtx/S19.2E* get the following permissions:

---xr-x--- 1 vdr vdr 7840 Sep 13 17:40 100s.vtx*
or
---------- 1 vdr vdr 7840 Sep 13 17:40 880s.vtx

I read something about a patch - unfortunately there's no link to it, neither is it on the plugin homepage. Maybe it would be possible to put the patch or even a new version on the site? :-)

Cheers,

Bernd ---- happy VDR user since 3 years :-)



I found this patch on the list here...
André.


--- txtrecv.c.orig Sun Jul 11 20:17:00 2004
+++ txtrecv.c Sat Aug 21 17:36:54 2004
@@ -285,7 +285,7 @@
getFilename(filename, sizeof(filename), page);
bool existed=exists(filename);
//first try
- StorageHandle fd=(StorageHandle)open(filename, O_WRONLY | O_CREAT | O_TRUNC);
+ StorageHandle fd=(StorageHandle)open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (fd) {
if (!existed)
registerFile(page);
@@ -295,7 +295,7 @@
if (errno == ENOSPC)
freeSpace();
//second try
- fd=(StorageHandle)open(filename, O_WRONLY | O_CREAT | O_TRUNC);
+ fd=(StorageHandle)open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (!fd && !wroteError) {
//report error to syslog - once!
wroteError=true;
@@ -395,7 +395,7 @@
char filename[PATH_MAX];
getFilename(filename, sizeof(filename), page);
//first try
- int desc=open(filename, O_RDWR | O_CREAT);
+ int desc=open(filename, O_RDWR | O_CREAT, 0666);
if (desc != -1) {
if (!seekTo(page, desc, true)) {
::close(desc);
@@ -409,7 +409,7 @@
if (errno == ENOSPC)
freeSpace();
//second try
- desc=open(filename, O_RDWR | O_CREAT);
+ desc=open(filename, O_RDWR | O_CREAT, 0666);
if (desc==-1 && !wroteError) {
//report error to syslog - once!
wroteError=true;

=== end of patch ===




Home | Main Index | Thread Index