[Bug 1062267] New: IPC::Run3::run3($command, \undef) clobbers STDIN

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 6 14:45:14 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1062267

            Bug ID: 1062267
           Summary: IPC::Run3::run3($command, \undef) clobbers STDIN
           Product: Fedora
           Version: 20
         Component: perl-IPC-RUN3
          Assignee: rc040203 at freenet.de
          Reporter: ppisar at redhat.com
        QA Contact: extras-qa at fedoraproject.org
                CC: perl-devel at lists.fedoraproject.org,
                    rc040203 at freenet.de
   External Bug ID: CPAN 52317



If IPC::Run3::run3() is invoked with \undef for command's standard input, it
will clobber STDIN, so STDIN is unusable after return from run3():

Reproducer:

$ printf '1\n2\n'| perl -MIPC::Run3 -e 'while (<>) { print; run3([q{true}],
\undef) }' 
1

This should print:

1
2

But it stops after first loop.

Observed in perl-IPC-Run3-0.046-3.fc20.noarch, F20.

Reported to upstream, patch is there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=CaSYOvvwS4&a=cc_unsubscribe



More information about the perl-devel mailing list