Skip to content

Commit 1a53267

Browse files
committed
Merge pull request mobile-shell#1187 from ProducerMatt/MattsChanges
2 parents cc1e349 + 42e0893 commit 1a53267

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/frontend/mosh-server.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,12 @@ static int run_server( const char* desired_ip,
613613
exit( 1 );
614614
}
615615

616+
/* clear stale SSH_TTY environment variable */
617+
if ( unsetenv( "SSH_TTY" ) < 0 ) {
618+
perror( "unsetenv" );
619+
exit( 1 );
620+
}
621+
616622
chdir_homedir();
617623

618624
if ( with_motd && ( !motd_hushed() ) ) {

0 commit comments

Comments
 (0)