diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1353,7 +1353,7 @@ mm_answer_pty(int sock, Buffer *m) | |||
1353 | res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); | 1353 | res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); |
1354 | if (res == 0) | 1354 | if (res == 0) |
1355 | goto error; | 1355 | goto error; |
1356 | pty_setowner(authctxt->pw, s->tty); | 1356 | pty_setowner(authctxt->pw, s->tty, authctxt->role); |
1357 | 1357 | ||
1358 | buffer_put_int(m, 1); | 1358 | buffer_put_int(m, 1); |
1359 | buffer_put_cstring(m, s->tty); | 1359 | buffer_put_cstring(m, s->tty); |