Actions
Bug #620
closedCan't use read-only directory
Description
A read-only directory can't use as image base folder.
As first workaround
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"));
Actions