X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FUnixRuntime.java;h=151699f8c4c35c20b955291830371011c752070e;hp=9b9a8cf2027993e2d9f0922e662a4b1bd0280834;hb=7e1e0dc49707b777e71e69c23c0a48e0a2665a4b;hpb=3efa407f6606052b91cec5c98fab3f0a0a733b37 diff --git a/src/org/ibex/nestedvm/UnixRuntime.java b/src/org/ibex/nestedvm/UnixRuntime.java index 9b9a8cf..151699f 100644 --- a/src/org/ibex/nestedvm/UnixRuntime.java +++ b/src/org/ibex/nestedvm/UnixRuntime.java @@ -306,6 +306,12 @@ public abstract class UnixRuntime extends Runtime implements Cloneable { private int exec(String normalizedPath, String[] argv, String[] envp) throws ErrnoException { if(argv.length == 0) argv = new String[]{""}; + // NOTE: For this little hack to work nestedvm.root MUST be "." + /*try { + System.err.println("Execing normalized path: " + normalizedPath); + if(true) return exec(new Interpreter(normalizedPath),argv,envp); + } catch(IOException e) { throw new Error(e); }*/ + Object o = gs.exec(this,normalizedPath); if(o == null) return -ENOENT;