Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29509

shell_history.js should tolerate extended file ACLs

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.16, 3.2.15, 3.4.6, 3.5.9
    • Affects Version/s: 3.4.4, 3.5.8
    • Component/s: Shell
    • None
    • Environment:
      *nix
    • Fully Compatible
    • ALL
    • v3.4, v3.2, v3.0
    • 0

      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.

            Assignee:
            kevin.pulo@mongodb.com Kevin Pulo
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: