(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
authorrubidium
Tue, 04 Dec 2007 18:42:08 +0000
changeset 8009 e38f46188aad
parent 8008 4cc180fe96ab
child 8010 362ba0e81391
(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;
 }