From ab66bd249f4b59f15006e0185b0b7a0f0a6cc68b Mon Sep 17 00:00:00 2001 From: anbr Date: Sat, 2 Apr 2011 15:54:30 +0200 Subject: Allow a read-only image directory [Bug #620] --- dvdswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- cgit v1.2.3