diff options
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/natFileDescriptorPosix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/io/natFileDescriptorPosix.cc b/libjava/java/io/natFileDescriptorPosix.cc index 059eeb9..0b80c64 100644 --- a/libjava/java/io/natFileDescriptorPosix.cc +++ b/libjava/java/io/natFileDescriptorPosix.cc @@ -1,6 +1,6 @@ // natFileDescriptor.cc - Native part of FileDescriptor class. -/* Copyright (C) 1998, 1999, 2000 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation This file is part of libgcj. @@ -81,7 +81,7 @@ java::io::FileDescriptor::open (jstring path, jint jflags) JvAssert ((jflags & READ) || (jflags & WRITE)); int mode = 0666; if ((jflags & READ) && (jflags & WRITE)) - flags |= O_RDWR; + flags |= O_RDWR | O_CREAT; else if ((jflags & READ)) flags |= O_RDONLY; else |