Skip to content

Commit 6b1da1a

Browse files
committed
Respect db_home setting even for the SYSTEM account
We should not blindly set the home directory of the SYSTEM account to /home/SYSTEM, especially not when that value disagrees with what is configured via the `db_home` line in the `/etc/nsswitch.conf` file. This fixes git-for-windows/git#435 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0f56cdd commit 6b1da1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

winsup/cygwin/uinfo.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,11 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
22222222
it to a well-known group here. */
22232223
if (acc_type == SidTypeUser
22242224
&& (sid_sub_auth_count (sid) <= 3 || sid_id_auth (sid) == 11))
2225-
acc_type = SidTypeWellKnownGroup;
2225+
{
2226+
acc_type = SidTypeWellKnownGroup;
2227+
home = cygheap->pg.get_home (pldap, sid, dom, domain, name,
2228+
fully_qualified_name);
2229+
}
22262230
switch (acc_type)
22272231
{
22282232
case SidTypeUser:

0 commit comments

Comments
 (0)