...
BugZero found this defect 2709 days ago.
If jstests/noPassthrough/shell_history.js is running on a system where files can have extended ACL attributes, then the file mode output from GNU ls -l may include a trailing character to indicate the presence of alternate ACLs ('.' (dot) for SELinux or '+' (plus) for other) (reference). However shell_history.js checks for equality of the whole mode string against "-rw-------", which spuriously breaks in the presence of such a trailing character.
xgen-internal-githook commented on Thu, 15 Jun 2017 02:05:59 +0000: Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'} Message: SERVER-29509 tolerate extended file ACLs in shell history jstest (cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc) Branch: v3.0 https://github.com/mongodb/mongo/commit/094684a2c388edf655a5830755c77508c3b7cbbb xgen-internal-githook commented on Thu, 15 Jun 2017 02:03:52 +0000: Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'} Message: SERVER-29509 tolerate extended file ACLs in shell history jstest (cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc) Branch: v3.2 https://github.com/mongodb/mongo/commit/4ab6ccc79febd7b3e76c792fa67efaae4060dc05 xgen-internal-githook commented on Thu, 15 Jun 2017 01:58:37 +0000: Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'} Message: SERVER-29509 tolerate extended file ACLs in shell history jstest (cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc) Branch: v3.4 https://github.com/mongodb/mongo/commit/2bda80db0aab45d2ffab9a9c18c4258d498fcceb xgen-internal-githook commented on Fri, 9 Jun 2017 02:56:37 +0000: Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'} Message: SERVER-29509 tolerate extended file ACLs in shell history jstest Branch: master https://github.com/mongodb/mongo/commit/6a85a4b845d2d365dc6f8a06c3c02824dc1909dc