diff options
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshpty.c,v 1.32 2019/06/28 13:35:04 deraadt Exp $ */ | 1 | /* $OpenBSD: sshpty.c,v 1.33 2019/07/04 16:16:51 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -179,7 +179,7 @@ pty_setowner(struct passwd *pw, const char *tty) | |||
179 | * Warn but continue if filesystem is read-only and the uids match/ | 179 | * Warn but continue if filesystem is read-only and the uids match/ |
180 | * tty is owned by root. | 180 | * tty is owned by root. |
181 | */ | 181 | */ |
182 | if (stat(tty, &st)) | 182 | if (stat(tty, &st) == -1) |
183 | fatal("stat(%.100s) failed: %.100s", tty, | 183 | fatal("stat(%.100s) failed: %.100s", tty, |
184 | strerror(errno)); | 184 | strerror(errno)); |
185 | 185 | ||