diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2019-01-27 01:36:40 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2019-01-27 01:36:40 +0000 |
commit | 2ee43ae6d6973d21cddea8964db58f7abe67df51 (patch) | |
tree | 0a2bb11ea9ee15e745fe0e9163c9ff81cf043761 /libgfortran/io/close.c | |
parent | b8f1882e8726932394d5065419c3fdf565f68a5e (diff) | |
download | gcc-2ee43ae6d6973d21cddea8964db58f7abe67df51.tar.gz |
re PR libfortran/89020 (close(status='DELETE') does not remove file)
2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/89020
* io/close.c (st_close): Fix typo.
From-SVN: r268309
Diffstat (limited to 'libgfortran/io/close.c')
-rw-r--r-- | libgfortran/io/close.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index 2b35e49c9cc..7fa968faf62 100644 --- a/libgfortran/io/close.c +++ b/libgfortran/io/close.c @@ -116,7 +116,7 @@ st_close (st_parameter_close *clp) #if !HAVE_UNLINK_OPEN_FILE if (path != NULL) { - if (remove (u->filename)) + if (remove (path)) generate_error (&clp->common, LIBERROR_OS, "File cannot be deleted, possibly in use by" " another process"); |