Don't save shell history if the line contains .auth. SERVER-581
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user