diff options
author | Taj Morton <tajmorton@gmail.com> | 2020-10-20 15:45:07 +0200 |
---|---|---|
committer | Alexander Naumov <alexander_naumov@opensuse.org> | 2020-10-20 15:45:07 +0200 |
commit | 58aa0f9f1c6c88e1551ec78763742d136f8873ed (patch) | |
tree | 61137d8a31b4fd067ebbd18b83089f5edc6b88b2 | |
parent | f0d6154b95075f1e1198cd1fd12f7516cca57add (diff) | |
download | screen-58aa0f9f1c6c88e1551ec78763742d136f8873ed.tar.gz |
bugfix: option -X ignores specified user in multiuser env
bug #37437
Thanks to Taj Morton
-rw-r--r-- | src/screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
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."); |