summaryrefslogtreecommitdiff
path: root/xmltv2vdr.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-07-24 16:50:37 +0200
committerJochen Dolze <vdr@dolze.de>2011-07-24 16:50:37 +0200
commit653b36f3db380683e73cb0ae3c17ddc28bd41fa1 (patch)
tree15cfb0b6299213d92bbfc2869607b1263146a3e4 /xmltv2vdr.cpp
parent107836c3b0f013e73c6cf572d8947c8d9133d39d (diff)
downloadvdr-plugin-xmltv2vdr-653b36f3db380683e73cb0ae3c17ddc28bd41fa1.tar.gz
vdr-plugin-xmltv2vdr-653b36f3db380683e73cb0ae3c17ddc28bd41fa1.tar.bz2
Added epgdata importer
Diffstat (limited to 'xmltv2vdr.cpp')
-rw-r--r--xmltv2vdr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp
index 9f79c01..b225274 100644
--- a/xmltv2vdr.cpp
+++ b/xmltv2vdr.cpp
@@ -104,7 +104,7 @@ bool cEPGSource::ReadConfig()
esyslog("xmltv2vdr: '%s' out of memory",name);
return false;
}
- FILE *f=fopen(fname,"r+");
+ FILE *f=fopen(fname,"r");
if (!f)
{
esyslog("xmltv2vdr: '%s' ERROR cannot read config file %s",name,fname);
@@ -542,7 +542,7 @@ void cPluginXmltv2vdr::ReadInEPGSources(bool Reload)
char *path=NULL;
if (asprintf(&path,"%s/%s",EPGSOURCES,dirent->d_name)!=-1)
{
- if (access(path,R_OK|W_OK)!=-1)
+ if (access(path,R_OK)!=-1)
{
int fd=open(path,O_RDONLY);
if (fd!=-1)