summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2019-07-02 15:22:26 +1000
committerTony Cook <tony@develop-help.com>2019-07-16 15:30:06 +1000
commit0424723402ef153af8ee44222315d9b6a818d1ba (patch)
tree1186666bc64c4b9a94bbdc923e768b497f8e3dac /perlio.c
parentae73d7ec2329275a2dba4be24415743f884d9dfd (diff)
downloadperl-0424723402ef153af8ee44222315d9b6a818d1ba.tar.gz
(perl #134221) support append mode temp files on Win32 too
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index a737e79e02..81ebc156ad 100644
--- a/perlio.c
+++ b/perlio.c
@@ -5059,7 +5059,7 @@ PerlIO_tmpfile_flags(int imode)
#endif
PerlIO *f = NULL;
#ifdef WIN32
- const int fd = win32_tmpfd();
+ const int fd = win32_tmpfd_mode(imode);
if (fd >= 0)
f = PerlIO_fdopen(fd, "w+b");
#elif ! defined(VMS) && ! defined(OS2)