diff options
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |