Created
February 11, 2016 08:42
-
-
Save 7shi/0f4721fc510087c8458d to your computer and use it in GitHub Desktop.
A patch for vax_interpreter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur vax_interpreter.orig/FileItem.java vax_interpreter/FileItem.java | |
--- vax_interpreter/FileItem.java 2016-01-10 15:41:00.658583200 +0900 | |
+++ /d/vsprojs/vaxrun/src/vax_interpreter/FileItem.java 2016-02-11 13:21:43.405655200 +0900 | |
@@ -113,7 +113,7 @@ | |
// If file mode is read-only, it will be failed. | |
if (isCreatedNewFile) { | |
if (!Kernel.Sysent.setFileMode(file, fmode)) { | |
- throw new RuntimeException(); | |
+ //throw new RuntimeException(); | |
} | |
} | |
return fItem; | |
diff -ur vax_interpreter.orig/Kernel.java vax_interpreter/Kernel.java | |
--- vax_interpreter/Kernel.java 2016-01-10 15:41:00.665595900 +0900 | |
+++ /d/vsprojs/vaxrun/src/vax_interpreter/Kernel.java 2016-02-11 13:21:43.419681000 +0900 | |
@@ -18,7 +18,7 @@ | |
static String rootPath; | |
static { | |
String classPath = Thread.currentThread().getContextClassLoader().getResource("").getPath(); | |
- rootPath = Paths.get(classPath, "root").toString(); | |
+ rootPath = new File(classPath, "root").getPath(); | |
} | |
public static void syscall(int code, Context context) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment