Return value from pty_open_ctty is non-zero on error, not negative
authorEzra Peisach <epeisach@mit.edu>
Sat, 5 Aug 1995 13:25:57 +0000 (13:25 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 5 Aug 1995 13:25:57 +0000 (13:25 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6426 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/open_slave.c

index fc626203a12542b4248a11753d37643b6f9ec621..02566df73a60f970f709db75cff9dfb657b6c0d8 100644 (file)
@@ -1,3 +1,8 @@
+Sat Aug  5 01:00:35 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * open_slave.c (pty_open_slave): pty_open_ctty returns != 0 on
+               error, not less than.
+
 Fri Aug  4 13:59:11 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * libpty.h (pty_cleanup): Fix argument type of pid to patch that
index 11c4f6cca332c0830a861d9cb44e0df848b19cf7..bcd13779f8133226401e035b81be63c98122c620 100644 (file)
@@ -68,7 +68,7 @@ return PTY_OPEN_SLAVE_CHMODFAIL;
 #endif /*HAVE_REVOKE*/
 
 /* Open the pty for real. */
-    if  (( retval = pty_open_ctty ( slave, fd))  < 0 ) {
+    if  (( retval = pty_open_ctty ( slave, fd))  != 0 ) {
        return PTY_OPEN_SLAVE_OPENFAIL;
     }
     return pty_initialize_slave (*fd);