horrendous hack for TeX... Brian, please forgive me
authoradam <adam@megacz.com>
Fri, 14 May 2004 08:13:42 +0000 (01:13 -0700)
committeradam <adam@megacz.com>
Fri, 14 May 2004 08:13:42 +0000 (01:13 -0700)
darcs-hash:20040514081342-5007d-9cc74c5b9b297c7986664c43d154827dc63ac0a7.gz

src/org/ibex/nestedvm/UnixRuntime.java

index 2b32965..dbe562d 100644 (file)
@@ -926,6 +926,8 @@ public abstract class UnixRuntime extends Runtime implements Cloneable {
         
         
         public FD open(UnixRuntime r, String path, int flags, int mode) throws ErrnoException {
         
         
         public FD open(UnixRuntime r, String path, int flags, int mode) throws ErrnoException {
+            // FIXME: horrendous, ugly hack needed by TeX... sorry Brian...
+            path = path.trim();
             final File f = hostFile(path);
             return r.hostFSOpen(f,flags,mode,this);
         }
             final File f = hostFile(path);
             return r.hostFSOpen(f,flags,mode,this);
         }