summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-04-07 08:36:26 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-04-07 08:36:26 +0000
commitc5af4229019b04c7fa4be99300f8d9883c0bdf73 (patch)
treed58b891e59188e7951342d5f1d466f56183d66b0 /perlio.c
parentb8a524e96d5b75be96d6a98368b9c29153780cfe (diff)
downloadperl-c5af4229019b04c7fa4be99300f8d9883c0bdf73.tar.gz
Allow PerlIOBase_pushed to ignore prefix on mode (e.g. sysopen's "#r")
Else it complains and so crlf layer (say) does not get pushed. p4raw-id: //depot/perlio@9601
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 797b816215..c82da9bc32 100644
--- a/perlio.c
+++ b/perlio.c
@@ -1470,6 +1470,8 @@ PerlIOBase_pushed(PerlIO *f, const char *mode, SV *arg)
l->flags |= PERLIO_F_FASTGETS;
if (mode)
{
+ if (*mode == '#' || *mode == 'I')
+ mode++;
switch (*mode++)
{
case 'r':