diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-16 03:09:27 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-16 03:09:27 +0000 |
commit | 243ea7106390656357ceab6f32a2730bc56341bf (patch) | |
tree | 1884a31b9965f6d805ba45f919d61cc9c4a3eae2 /libjava/java/io | |
parent | 57f9dbdc27af07d621d5ee24333e72afa86ebb70 (diff) | |
download | gcc-243ea7106390656357ceab6f32a2730bc56341bf.tar.gz |
2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
* java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for
PR libgcj/202.
(available): Initialize `Where' to prevent bogus compiler warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33181 138bc75d-0d04-0410-961f-82ee72b054a4
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 ab95307c06b..50be35c24be 100644 --- a/libjava/java/io/natFileDescriptorPosix.cc +++ b/libjava/java/io/natFileDescriptorPosix.cc @@ -83,7 +83,7 @@ java::io::FileDescriptor::open (jstring path, jint jflags) #endif JvAssert ((jflags & READ) || (jflags & WRITE)); - int mode = 0644; + int mode = 0666; if ((jflags & READ) && (jflags & WRITE)) flags |= O_RDWR; else if ((jflags & READ)) @@ -281,7 +281,7 @@ java::io::FileDescriptor::available (void) if (! num_set) { struct stat sb; - off_t where; + off_t where = 0; if (fstat (fd, &sb) != -1 && S_ISREG (sb.st_mode) && (where = lseek (fd, SEEK_CUR, 0)) != (off_t) -1) |