Skip to content

Commit 90d8aad

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 <johannes.schindelin@gmx.de>
1 parent ad711d9 commit 90d8aad

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
@@ -2307,7 +2307,11 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
23072307
it to a well-known group here. */
23082308
if (acc_type == SidTypeUser
23092309
&& (sid_sub_auth_count (sid) <= 3 || sid_id_auth (sid) == 11))
2310-
acc_type = SidTypeWellKnownGroup;
2310+
{
2311+
acc_type = SidTypeWellKnownGroup;
2312+
home = cygheap->pg.get_home (pldap, sid, dom, domain, name,
2313+
fully_qualified_name);
2314+
}
23112315
switch ((int) acc_type)
23122316
{
23132317
case SidTypeUser:

0 commit comments

Comments
 (0)