projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new busybox
[nestedvm.git]
/
src
/
org
/
ibex
/
nestedvm
/
UnixRuntime.java
diff --git
a/src/org/ibex/nestedvm/UnixRuntime.java
b/src/org/ibex/nestedvm/UnixRuntime.java
index
1466a9b
..
e3afe98
100644
(file)
--- a/
src/org/ibex/nestedvm/UnixRuntime.java
+++ b/
src/org/ibex/nestedvm/UnixRuntime.java
@@
-642,6
+642,9
@@
public abstract class UnixRuntime extends Runtime implements Cloneable {
}
public synchronized Object exec(UnixRuntime r, String path) throws ErrnoException {
}
public synchronized Object exec(UnixRuntime r, String path) throws ErrnoException {
+ // FIXME: Hideous hack to make a standalone busybox possible
+ if(path.equals("bin/busybox") && r.getClass().getName().endsWith("BusyBox"))
+ return r.getClass();
FStat fstat = stat(r,path);
if(fstat == null) return null;
long mtime = fstat.mtime();
FStat fstat = stat(r,path);
if(fstat == null) return null;
long mtime = fstat.mtime();