incorrect check for open failure in openpty function
authorRich Felker <dalias@aerifal.cx>
Fri, 22 Jul 2011 04:23:36 +0000 (00:23 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 22 Jul 2011 04:23:36 +0000 (00:23 -0400)
commitd40e344f7b311980dfe3c165d8cbecfe04c12bd2
treea681ebc8249790bd507714361e3db464a6ea07be
parent63d447e2a3bb7faf69e0befb123e6ffff0ce47ea
incorrect check for open failure in openpty function

-1, not 0, indicates failure
src/misc/openpty.c