[oe-commits] Robert Schuster : midpath 0.2rc2: Fixed patch.

GIT User account git at amethyst.openembedded.net
Wed Dec 17 06:10:46 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 03d5c900d9ef7237313ebb4d447e79cf6717f05a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=03d5c900d9ef7237313ebb4d447e79cf6717f05a

Author: Robert Schuster <thebohemian at gmx.net>
Date:   Wed Dec 17 07:09:45 2008 +0100

midpath 0.2rc2: Fixed patch.

---

 packages/midpath/files/fix-openfile.patch |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/midpath/files/fix-openfile.patch b/packages/midpath/files/fix-openfile.patch
index 392364b..df677e1 100644
--- a/packages/midpath/files/fix-openfile.patch
+++ b/packages/midpath/files/fix-openfile.patch
@@ -1,21 +1,21 @@
 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-05 12:29:47.000000000 +0100
-@@ -181,10 +181,13 @@
+--- midpath-0.3rc2.orig/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java	2008-05-19 13:56:18.000000000 +0200
++++ midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java	2008-12-17 07:08:54.000000000 +0100
+@@ -181,10 +181,14 @@
  
  	public void openForRead() throws IOException {
  		if (randomAccessFile == null) {
 -			//stream = new FileRandomAccessStream(file);
 -			randomAccessFile = new RandomAccessFile(file, "rws");
--		}
--	}
 +			// Try to get maximum rights to avoid closing the stream if openForWrite is called next
 +			if (file.canWrite()) {
 +				randomAccessFile = new RandomAccessFile(file, "rws");
 +			} else {
 +				randomAccessFile = new RandomAccessFile(file, "r");
 +			}
+ 		}
+-	}
 +  }
  
  	public void openForWrite() throws IOException {





More information about the Openembedded-commits mailing list