Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-868

PR (136): Add -s /bin/sh to su command for git and hg - kmullin

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:

      Description

      Add -s /bin/sh to su command for git and hg

      Pull Request Description


      When a users shell is set to /bin/false or any other non-login shell
      the su command in both git and hg providers will not successfully
      switch to the user. This allows for detection of Linux, whos su has
      '-s' argument to overwrite the shell used.

      If the system is not Linux, then shell will become nil, and you can AFAIK, splat a nil.


      (webhooks-id: aa41f996e18d7428b3e68502d8a0bcbb)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            gepetto-bot gepetto-bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support