Project

General

Profile

Actions

Bug #620

closed

Can't use read-only directory

Added by anbr about 13 years ago. Updated almost 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 #1

Updated by anbr about 13 years ago

  • Status changed from New to Assigned
  • Assignee set to anbr
  • % Done changed from 0 to 70

Merged fix with ab66bd24

Actions #2

Updated by anbr almost 13 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 70 to 100
Actions

Also available in: Atom PDF