summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2011-04-02 15:54:30 +0200
committeranbr <vdr07@deltab.de>2011-04-02 15:54:30 +0200
commitab66bd249f4b59f15006e0185b0b7a0f0a6cc68b (patch)
tree453cf44365708482d5e352cb82c9ad63c7f55f17
parent6e0a0bd3c0ef80f19009c1b9d6f659d739e9f14b (diff)
downloadvdr-plugin-dvdswitch-ab66bd249f4b59f15006e0185b0b7a0f0a6cc68b.tar.gz
vdr-plugin-dvdswitch-ab66bd249f4b59f15006e0185b0b7a0f0a6cc68b.tar.bz2
Allow a read-only image directory [Bug #620]
-rw-r--r--dvdswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dvdswitch.c b/dvdswitch.c
index ca8321b..3ee61f0 100644
--- a/dvdswitch.c
+++ b/dvdswitch.c
@@ -149,7 +149,7 @@ cString cPluginDvdswitch::SVDRPCommand(const char *Command, const char *Option,
bool cPluginDvdswitch::CheckError(void)
{
dsyslog("dvdswitch: Check Image Directory");
- if(!DirectoryOk(DVDSwitchSetup.ImageDir))
+ if (access(DVDSwitchSetup.ImageDir, R_OK | X_OK) != 0)
{
esyslog("dvdswitch: Image Directory '%s' not readable", DVDSwitchSetup.ImageDir);
OsdMsg(mtError,tr("Image Directory not readable or not exist"));