From 5f576e12aa23c828f4a79726d43647905c98f104 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 4 Dec 2007 18:42:08 +0000 Subject: [PATCH] (svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly. --- src/fileio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fileio.cpp b/src/fileio.cpp index a2db038962..54a7ef9329 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -350,6 +350,12 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, } } + /* Sometimes a full path is given. To support + * the 'subdirectory' must be 'removed'. */ + if (f == NULL && subdir != NO_DIRECTORY) { + f = FioFOpenFile(filename, mode, NO_DIRECTORY, filesize); + } + return f; }