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"));
Updated by anbr almost 15 years ago
- Status changed from New to Assigned
- Assignee set to anbr
- % Done changed from 0 to 70
Merged fix with ab66bd24
Updated by anbr almost 15 years ago
- Status changed from Assigned to Closed
- % Done changed from 70 to 100
Actions