mirror of
https://github.com/tmux/tmux.git
synced 2025-04-18 01:50:18 +00:00
Fix comparison of tty name.
This commit is contained in:
parent
d01e7aac89
commit
0070313e28
@ -241,7 +241,7 @@ server_client_open(struct client *c, char **cause)
|
||||
if (c->flags & CLIENT_CONTROL)
|
||||
return (0);
|
||||
|
||||
if (strcmp(c->ttyname, ttynam) ||
|
||||
if (strcmp(c->ttyname, ttynam) == 0||
|
||||
((isatty(STDIN_FILENO) &&
|
||||
(ttynam = ttyname(STDIN_FILENO)) != NULL &&
|
||||
strcmp(c->ttyname, ttynam) == 0) ||
|
||||
|
Loading…
Reference in New Issue
Block a user