This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a333faa
)
[ID 20010625.009] open(FILE,"+foo") [PATCH]
author
Robert Spier
<rspier@pobox.com>
Wed, 27 Jun 2001 23:13:16 +0000
(19:13 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 28 Jun 2001 03:49:07 +0000
(
03:49
+0000)
Message-ID: <15162.41164.618712.841415@rls.cx>
p4raw-id: //depot/perl@10999
doio.c
patch
|
blob
|
blame
|
history
diff --git
a/doio.c
b/doio.c
index
84d2aaa
..
dfd8710
100644
(file)
--- a/
doio.c
+++ b/
doio.c
@@
-233,6
+233,7
@@
Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw,
}
IoTYPE(io) = *type;
if ((*type == IoTYPE_RDWR) && /* scary */
+ (*(type+1) == IoTYPE_RDONLY || *(type+1) == IoTYPE_WRONLY) &&
((!num_svs || (tend > type+1 && tend[-1] != IoTYPE_PIPE)))) {
mode[1] = *type++;
writing = 1;