summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaj Morton <tajmorton@gmail.com>2020-10-20 15:45:07 +0200
committerAlexander Naumov <alexander_naumov@opensuse.org>2020-10-20 15:45:07 +0200
commit58aa0f9f1c6c88e1551ec78763742d136f8873ed (patch)
tree61137d8a31b4fd067ebbd18b83089f5edc6b88b2
parentf0d6154b95075f1e1198cd1fd12f7516cca57add (diff)
downloadscreen-58aa0f9f1c6c88e1551ec78763742d136f8873ed.tar.gz
bugfix: option -X ignores specified user in multiuser env
bug #37437 Thanks to Taj Morton
-rw-r--r--src/screen.c4
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.");