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

shell_history.js should tolerate extended file ACLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.4.4, 3.5.8
    • 3.0.16, 3.2.15, 3.4.6, 3.5.9
    • Shell
    • None
    • *nix
    • Fully Compatible
    • ALL
    • v3.4, v3.2, v3.0
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: