(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
authorrubidium
Tue, 04 Dec 2007 18:42:08 +0000
changeset 8505 e2e4f0c44da9
parent 8504 a258f7640c56
child 8506 578228a9044b
(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
src/fileio.cpp
--- a/src/fileio.cpp	Tue Dec 04 17:51:50 2007 +0000
+++ b/src/fileio.cpp	Tue Dec 04 18:42:08 2007 +0000
@@ -350,6 +350,12 @@
 		}
 	}
 
+	/* 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;
 }