Permalink
Browse files

Dont add addUser lines to shell history SERVER-3768

Conflicts:

	shell/dbshell.cpp
  • Loading branch information...
1 parent abb6284 commit 446f597cf423d62df0b4a6c292b57da1f382649c @erh erh committed Mar 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 shell/dbshell.cpp
View
@@ -126,8 +126,11 @@ void shellHistoryAdd( const char * line ) {
return;
lastLine = line;
- if ((strstr(line, ".auth")) == NULL)
+ if ( strstr( line, ".auth") == NULL &&
+ strstr( line, ".addUser") == NULL )
+ {
linenoiseHistoryAdd( line );
+ }
#endif
}

0 comments on commit 446f597

Please sign in to comment.