diff options
author | Spider Boardman <spider@orb.nashua.nh.us> | 1997-05-01 02:01:20 -0400 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-05-01 00:00:00 +1200 |
commit | 064096e1fdaab07bcd3ebf7726fe67a5ae16c76f (patch) | |
tree | 8c9e07c445dcce4ef224668d656a9f7cbea38490 /pp_sys.c | |
parent | a1f49e722e7e3f3a14f81e8dd51de229003f2378 (diff) | |
download | perl-064096e1fdaab07bcd3ebf7726fe67a5ae16c76f.tar.gz |
Fix sysread() on tied handle
Found in both perldelta.pod and perltie.pod:
: =item READ this LIST
:
: This method will be called when the handle is read from via the C<read>
: or C<sysread> functions.
This isn't true without the following patch:
p5p-msgid: 199705010601.CAA04926@Orb.Nashua.NH.US
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1195,7 +1195,7 @@ PP(pp_sysread) MAGIC *mg; gv = (GV*)*++MARK; - if (op->op_type == OP_READ && + if ((op->op_type == OP_READ || op->op_type == OP_SYSREAD) && SvMAGICAL(gv) && (mg = mg_find((SV*)gv, 'q'))) { SV *sv; |