perlio - unknown layer
Nicholas Clark [Mon, 26 Feb 2001 00:27:19 +0000 (00:27 +0000)]
Message-ID: <20010226002719.E23333@plum.flirble.org>

p4raw-id: //depot/perl@8951

perlio.c

index 982a98c..9f12be6 100644 (file)
--- a/perlio.c
+++ b/perlio.c
@@ -684,8 +684,10 @@ PerlIO_apply_layers(pTHX_ PerlIO *f, const char *mode, const char *names)
               return -1;
             }
           }
-         else
+         else {
           Perl_warn(aTHX_ "perlio: unknown layer \"%.*s\"",(int)llen,s);
+         return -1;
+        }
         }
        s = e;
       }