diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/shell/servers.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index 08652c5ec3b..38d72bf2816 100644 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -1319,7 +1319,8 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro args = appendSetParameterArgs(args); var progName = args[0]; - if (jsTestOptions().auth && progName != 'mongod') { + // The bsondump tool doesn't support these auth related command line flags. + if (jsTestOptions().auth && progName != 'mongod' && progName != 'bsondump') { args = args.slice(1); args.unshift(progName, '-u', |