diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 7 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2012-07-27 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * io.c (find_input_parser): Issue a warning if take_control_of fails. + 2012-07-27 Arnold D. Robbins <arnold@skeeve.com> * awk.h (set_RT): Change to take a NODE * parameter. @@ -2622,8 +2622,11 @@ find_input_parser(IOBUF *iop) } } - if (ip != NULL) - ip->take_control_of(& iop->public); + if (ip != NULL) { + if (! ip->take_control_of(& iop->public)) + warning(_("input parser `%s' failed to open `%s'."), + ip->name, iop->public.name); + } } /* iop_alloc --- allocate an IOBUF structure for an open fd */ |