diff options
| author | Ezra Peisach <epeisach@mit.edu> | 1995-08-05 13:25:57 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 1995-08-05 13:25:57 +0000 |
| commit | 07dd407d91a243eb2cbdbbe8e2692e8b849e87dc (patch) | |
| tree | 17f922217646ee08fef7030aa5820ec3b41688b1 /src | |
| parent | 0d6362a930179b1945f2b1f0954c4fb6010d6078 (diff) | |
| download | krb5-07dd407d91a243eb2cbdbbe8e2692e8b849e87dc.tar.gz krb5-07dd407d91a243eb2cbdbbe8e2692e8b849e87dc.tar.xz krb5-07dd407d91a243eb2cbdbbe8e2692e8b849e87dc.zip | |
Return value from pty_open_ctty is non-zero on error, not negative
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6426 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/pty/ChangeLog | 5 | ||||
| -rw-r--r-- | src/util/pty/open_slave.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index fc626203a1..02566df73a 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -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 diff --git a/src/util/pty/open_slave.c b/src/util/pty/open_slave.c index 11c4f6cca3..bcd13779f8 100644 --- a/src/util/pty/open_slave.c +++ b/src/util/pty/open_slave.c @@ -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); |
