summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2017-06-08 03:49:52 +0000
committerKevin Pulo <kevin.pulo@mongodb.com>2017-06-15 12:05:05 +1000
commit094684a2c388edf655a5830755c77508c3b7cbbb (patch)
tree7e5a0eff3988dcc5ca7d42747442941ae32b902c
parent55552c72286203c8280da91395c46b29c6535009 (diff)
downloadmongo-094684a2c388edf655a5830755c77508c3b7cbbb.tar.gz
SERVER-29509 tolerate extended file ACLs in shell history jstest
(cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc)
-rw-r--r--jstests/noPassthrough/shell_history.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/shell_history.js b/jstests/noPassthrough/shell_history.js
index ac760201e62..bbc8f9538af 100644
--- a/jstests/noPassthrough/shell_history.js
+++ b/jstests/noPassthrough/shell_history.js
@@ -120,7 +120,7 @@
// var output = rawMongoProgramOutput();
var fields = output.split(" ");
// First field is the prefix, second field is the `ls -l` permissions.
- assert.eq(fields[1], "-rw-------", targetFile + " has bad permissions");
+ assert.eq(fields[1].substr(0, 10), "-rw-------", targetFile + " has bad permissions");
}
})();