summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2021-04-27 16:22:35 +1000
committerTony Cook <tony@develop-help.com>2021-05-24 11:56:21 +1000
commit8f432bc3ba869d057076b810871aa3c2071b7229 (patch)
tree5cefecb65c3df5bc1e64505e5a5ccf68135f9cbf /doio.c
parenteaff4b50d983fd793969cf023a908f339b84e1ec (diff)
downloadperl-8f432bc3ba869d057076b810871aa3c2071b7229.tar.gz
fix utime() to set $!/errno when called on a closed handle
My 8334cae65 was intended to fix this, but the test was faulty, and didn't correctly fail. This started showing as a failure on cygwin, with the fixed test it also fails on Linux, so fix doio.c as well.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doio.c b/doio.c
index baca499d10..76f2e0e84b 100644
--- a/doio.c
+++ b/doio.c
@@ -2766,6 +2766,7 @@ nothing in the core.
#endif
}
else {
+ SETERRNO(EBADF,RMS_IFI);
tot--;
}
}