summaryrefslogtreecommitdiff
path: root/packages/midpath/files/fix-openfile.patch
blob: 6b9b8be2375e306862d8cea249bef085c07e10c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java
===================================================================
--- midpath-0.3rc2.orig/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java	2008-12-04 21:10:39.000000000 +0100
+++ midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java	2008-12-04 21:12:11.000000000 +0100
@@ -182,7 +182,7 @@
 	public void openForRead() throws IOException {
 		if (randomAccessFile == null) {
 			//stream = new FileRandomAccessStream(file);
-			randomAccessFile = new RandomAccessFile(file, "rws");
+			randomAccessFile = new RandomAccessFile(file, "r");
 		}
 	}