diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index a9a39e3..b9af314 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -441,10 +441,9 @@ int run_server( const char *desired_ip, const char *desired_port, if ( with_motd && (!motd_hushed()) ) { print_motd(); + warn_unattached( utmp_entry ); } - warn_unattached( utmp_entry ); - Crypto::reenable_dumping_core(); if ( execvp( command_path.c_str(), command_argv ) < 0 ) { @@ -808,7 +807,7 @@ void warn_unattached( const char *ignore_entry ) for ( vector< string >::const_iterator it = unattached_who_lines.begin(); it != unattached_who_lines.end(); it++ ) { - printf( "%s\n", it->c_str() ); + printf( "| %s\n", it->c_str() ); } printf( "\n" );