summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorSpider Boardman <spider@orb.nashua.nh.us>1997-05-01 02:01:20 -0400
committerChip Salzenberg <chip@atlantic.net>1997-05-01 00:00:00 +1200
commit064096e1fdaab07bcd3ebf7726fe67a5ae16c76f (patch)
tree8c9e07c445dcce4ef224668d656a9f7cbea38490 /pp_sys.c
parenta1f49e722e7e3f3a14f81e8dd51de229003f2378 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index a03d9a4890..ef769a59f4 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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;