aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2019-01-27 19:42:34 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2019-01-27 19:42:34 +0000
commit9faf6e70187e2a425ae2c502b8c00dded63e6460 (patch)
tree49a8551d693b35c712c6eaee958f568e78ba04d6 /libgfortran
parent683ccd0568569c67b117e87638782c6d870791b2 (diff)
re PR libfortran/89020 (close(status='DELETE') does not remove file)
2019-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/89020 * io/close.c (st_close): Simplify text of error message to not presume a specific cause of failure to remove file. From-SVN: r268319
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/close.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 0898b8ba88b..f1e43311206 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2019-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/89020
+ * io/close.c (st_close): Simplify text of error message to not
+ presume a specific cause of failure to remove file.
+
2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/89020
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c
index 7fa968faf62..1e075ea9608 100644
--- a/libgfortran/io/close.c
+++ b/libgfortran/io/close.c
@@ -102,8 +102,7 @@ st_close (st_parameter_close *clp)
if (remove (u->filename))
generate_error (&clp->common, LIBERROR_OS,
- "File cannot be deleted, possibly in use by"
- " another process");
+ "File cannot be deleted");
#else
path = strdup (u->filename);
#endif
@@ -118,8 +117,7 @@ st_close (st_parameter_close *clp)
{
if (remove (path))
generate_error (&clp->common, LIBERROR_OS,
- "File cannot be deleted, possibly in use by"
- " another process");
+ "File cannot be deleted");
free (path);
}
#endif