Don't save shell history if the line contains .auth. SERVER-581

This commit is contained in:
Richard Kreuter
2010-01-28 11:11:32 -05:00
parent 721a702f47
commit 91c38b48ec

View File

@@ -51,7 +51,8 @@ void shellHistoryAdd( const char * line ){
if ( strlen(line) == 0 )
return;
#ifdef USE_READLINE
add_history( line );
if ((strstr(line, ".auth")) == NULL)
add_history( line );
#endif
}