summaryrefslogtreecommitdiff
path: root/shell/dbshell.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2012-03-30 21:40:45 +0200
committerAntonin Kral <a.kral@bobek.cz>2012-03-30 21:40:45 +0200
commiteaaa7b30c99b89b5483e0a372bb73fe8c8695185 (patch)
tree6c08f243b00c0f6b7a4897a236774cf484e61314 /shell/dbshell.cpp
parentba59b00736b5b8dc0f0bd46397575aaf0cd4d44f (diff)
downloadmongodb-eaaa7b30c99b89b5483e0a372bb73fe8c8695185.tar.gz
Imported Upstream version 2.0.4
Diffstat (limited to 'shell/dbshell.cpp')
-rw-r--r--shell/dbshell.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp
index 443973f..34f2a34 100644
--- a/shell/dbshell.cpp
+++ b/shell/dbshell.cpp
@@ -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
}