1. 17 Mar, 2017 2 commits
    • Heikki Linnakangas's avatar
      Fix and simplify check for whether we're running as Windows service. · ff30aec7
      Heikki Linnakangas authored
      If the process token contains SECURITY_SERVICE_RID, but it has been
      disabled by the SE_GROUP_USE_FOR_DENY_ONLY attribute, win32_is_service()
      would incorrectly report that we're running as a service. That situation
      arises, e.g. if postmaster is launched with a restricted security token,
      with the "Log in as Service" privilege explicitly removed.
      
      Replace the broken code with CheckProcessTokenMembership(), which does
      this correctly. Also replace similar code in win32_is_admin(), even
      though it got this right, for simplicity and consistency.
      
      Per bug #13755, reported by Breen Hagan. Back-patch to all supported
      versions. Patch by Takayuki Tsunakawa, reviewed by Michael Paquier.
      
      Discussion: https://www.postgresql.org/message-id/20151104062315.2745.67143%40wrigleys.postgresql.org
      ff30aec7
    • Robert Haas's avatar
      Fix grammar. · b4ff8609
      Robert Haas authored
      This would have ben grammatical if the closing tag name were actually
      part of the output, but of course it's not.
      b4ff8609
  2. 16 Mar, 2017 10 commits
  3. 15 Mar, 2017 14 commits
  4. 14 Mar, 2017 14 commits