From: brian Date: Wed, 4 Aug 2004 09:27:40 +0000 (-0700) Subject: fix for really stupid O_EXCL bug X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=bca50e30043fa5ec16c58bbc42fe527d9d425351 fix for really stupid O_EXCL bug darcs-hash:20040804092740-24bed-9ac3b6c0b50656f8b0b80e64b61792b688794c34.gz --- diff --git a/src/org/ibex/nestedvm/Runtime.java b/src/org/ibex/nestedvm/Runtime.java index 8b57737..af84619 100644 --- a/src/org/ibex/nestedvm/Runtime.java +++ b/src/org/ibex/nestedvm/Runtime.java @@ -740,7 +740,7 @@ public abstract class Runtime implements UsermodeConstants,Registers,Cloneable { if((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { try { - if(Platform.atomicCreateFile(f)) throw new ErrnoException(EEXIST); + if(!Platform.atomicCreateFile(f)) throw new ErrnoException(EEXIST); } catch(IOException e) { throw new ErrnoException(EIO); }