Fix a bug introduced in r323.
authorpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 18 Nov 2009 16:02:23 +0000 (16:02 +0000)
committerpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 18 Nov 2009 16:02:23 +0000 (16:02 +0000)
commitb8b7c2f67ef418e061e896ab8caf07c7d8f5e50a
treef0b5bbed184b44cd00af2837a0b449dac6194919
parent91196cf7d2b3f1694ac02cc682bb60bf78d6538d
Fix a bug introduced in r323.

fdopen(fd, "rw") can cause a bad file descriptor error.

git-svn-id: http://opkg.googlecode.com/svn/trunk@333 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
libopkg/pkg.c