From 58aa0f9f1c6c88e1551ec78763742d136f8873ed Mon Sep 17 00:00:00 2001 From: Taj Morton Date: Tue, 20 Oct 2020 15:45:07 +0200 Subject: bugfix: option -X ignores specified user in multiuser env bug #37437 Thanks to Taj Morton --- src/screen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/screen.c b/src/screen.c index 8ef3a0e..920c8cd 100644 --- a/src/screen.c +++ b/src/screen.c @@ -869,6 +869,10 @@ int main(int argc, char **argv) xsignal(SIG_BYE, AttacherFinit); /* prevent races */ if (cmdflag) { /* attach_tty is not mandatory */ + + if (multi) + real_uid = multi_uid; + SetTtyname(false, &st); if (!*argv) Panic(0, "Please specify a command."); -- cgit v1.2.1