summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-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.");