Skip to content

Commit 71a2807

Browse files
committed
Forward with a TTY if called with a TTY
1 parent a4e0820 commit 71a2807

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/common/oursrc/accountadm/mbash.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ def maybe_forward():
118118
'-o', 'IdentityFile=none',
119119
'-o', 'UserKnownHostsFile=none',
120120
main_pool,
121-
'--',
122121
]
122+
if os.isatty(sys.stdin.fileno()):
123+
args.append('-t')
123124
if command is not None:
125+
args.append('--')
124126
args.append(command)
125127
os.execv('/usr/bin/ssh', args)
126128

0 commit comments

Comments
 (0)