diff options
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/close.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 1007978..0898b8b 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,6 +1,11 @@ 2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/89020 + * io/close.c (st_close): Fix typo. + +2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/89020 * io/close.c (st_close): Generate error if calls to 'remove' return an error. diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index 2b35e49..7fa968f 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"); |