From 91c38b48ec0762ce535ca7ef11ec45f4114d73f7 Mon Sep 17 00:00:00 2001 From: Richard Kreuter Date: Thu, 28 Jan 2010 11:11:32 -0500 Subject: [PATCH] Don't save shell history if the line contains .auth. SERVER-581 --- shell/dbshell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp index 798438324d7..55d841cb6d6 100644 --- a/shell/dbshell.cpp +++ b/shell/dbshell.cpp @@ -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 }