Commit 4e9519f6 authored by Niels Möller's avatar Niels Möller

Fix check of tty_getattr return value.

parent 7f667afa
2017-12-26 Niels Mller <nisse@lysator.liu.se>
* src/unix_interact.c (unix_get_attributes): Fix check of
tty_getattr return value.
2017-01-04 Niels Mller <nisse@lysator.liu.se>
* src/testsuite/lshd-umask-test: New test case, check that umask
......
......@@ -389,7 +389,7 @@ unix_get_attributes(struct interact *s)
res->super.make_raw = do_make_raw;
res->super.encode = do_encode;
if (!tty_getattr(self->tty_fd, &res->ios) < 0)
if (!tty_getattr(self->tty_fd, &res->ios))
{
KILL(res);
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment