Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
4e9519f6
Commit
4e9519f6
authored
Dec 26, 2017
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix check of tty_getattr return value.
parent
7f667afa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ChangeLog
ChangeLog
+5
-0
src/unix_interact.c
src/unix_interact.c
+1
-1
No files found.
ChangeLog
View file @
4e9519f6
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
...
...
src/unix_interact.c
View file @
4e9519f6
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment