From 2ee43ae6d6973d21cddea8964db58f7abe67df51 Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Sun, 27 Jan 2019 01:36:40 +0000 Subject: [PATCH] re PR libfortran/89020 (close(status='DELETE') does not remove file) 2019-01-26 Jerry DeLisle PR libfortran/89020 * io/close.c (st_close): Fix typo. From-SVN: r268309 --- libgfortran/ChangeLog | 5 +++++ libgfortran/io/close.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 10079787e75..0898b8ba88b 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2019-01-26 Jerry DeLisle + + PR libfortran/89020 + * io/close.c (st_close): Fix typo. + 2019-01-26 Jerry DeLisle PR libfortran/89020 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"); -- 2.30.2