Project

General

Profile

Actions

Bug #620

closed

Can't use read-only directory

Added by anbr over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/02/2011
Due date:
% Done:

100%

Estimated time:

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"));

http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p990110-dvd-switch-read-only-verzeichnisse/#post990110

Actions

Also available in: Atom PDF