Skip to content

Instantly share code, notes, and snippets.

@tevkar
Created May 14, 2026 06:47
Show Gist options
  • Select an option

  • Save tevkar/dab3fb32346f6899e11e374f254746e9 to your computer and use it in GitHub Desktop.

Select an option

Save tevkar/dab3fb32346f6899e11e374f254746e9 to your computer and use it in GitHub Desktop.
cygwin - drop MACHINE+ prefix for local SAM accounts on domain member machines.
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -2386,8 +2386,6 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, bool ugid_caching, cy
else if (!wcscasecmp (dom, cygheap->dom.account_flat_name ()))
{
posix_offset = 0x30000;
- if (cygheap->dom.member_machine ())
- fully_qualified_name = true;
is_domain_account = false;
}
/* Domain member machine? */

Comments are disabled for this gist.