aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/unix.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 3422af9..b1babff 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-26 Bud Davis <bdavis9659@comcast.net>
+
+ PR gfortran/16196
+ * unix.c(regular_file): create file if it does not exist.
+
2004-06-24 Andrew Pinski <apinski@apple.com>
* configure.ac: Remove check for libmx.
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index fc25395..0800447 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -982,7 +982,7 @@ regular_file (unit_action action, unit_status status)
break;
case STATUS_REPLACE:
- mode |= O_TRUNC;
+ mode |= O_CREAT | O_TRUNC;
break;
default: