opkg: Don't prompt for user input from stdin if it's not a tty.
authorChris Larson <clarson@mvista.com>
Tue, 6 Oct 2009 01:22:03 +0000 (18:22 -0700)
committerChris Larson <clarson@mvista.com>
Tue, 3 Nov 2009 20:56:13 +0000 (13:56 -0700)
commitf1d0fab3acc99d329deb0338fc51921e32fbe6f4
treeb18dfe8a31dff3edccb91ef54974507306e91b2a
parent1632c44d94d986f4933ae04e034f3fda11fb7e0b
opkg: Don't prompt for user input from stdin if it's not a tty.

Also fixes a minor memory leak while we're at it, as the code was
strdup'ing the malloc'd string read from stdin without ever
freeing the original.

Signed-off-by: Chris Larson <clarson@mvista.com>
recipes/opkg/opkg.inc
recipes/opkg/opkg/isatty.patch [new file with mode: 0644]