Tidy up unattached warning, only print when showing motd

This commit is contained in:
Keith Winstein
2012-07-23 01:25:55 -04:00
parent 549cf0a9bd
commit 2cb2f3aeb5
+2 -3
View File
@@ -441,10 +441,9 @@ int run_server( const char *desired_ip, const char *desired_port,
if ( with_motd && (!motd_hushed()) ) { if ( with_motd && (!motd_hushed()) ) {
print_motd(); print_motd();
warn_unattached( utmp_entry );
} }
warn_unattached( utmp_entry );
Crypto::reenable_dumping_core(); Crypto::reenable_dumping_core();
if ( execvp( command_path.c_str(), command_argv ) < 0 ) { 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(); for ( vector< string >::const_iterator it = unattached_who_lines.begin();
it != unattached_who_lines.end(); it != unattached_who_lines.end();
it++ ) { it++ ) {
printf( "%s\n", it->c_str() ); printf( "| %s\n", it->c_str() );
} }
printf( "\n" ); printf( "\n" );