summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index f7c5720d5..fa7fb0e25 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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);