Cygwin: uinfo.cc: fix formatting
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
f6be530a23
commit
43fa1aafa6
@ -778,7 +778,7 @@ cygheap_pwdgrp::nss_init_line (const char *line)
|
|||||||
*spc = L'\0';
|
*spc = L'\0';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
new_enums &= ~(ENUM_TDOMS | ENUM_TDOMS_ALL);
|
new_enums &= ~(ENUM_TDOMS | ENUM_TDOMS_ALL);
|
||||||
}
|
}
|
||||||
enums = new_enums;
|
enums = new_enums;
|
||||||
}
|
}
|
||||||
@ -896,7 +896,7 @@ fetch_windows_home (cyg_ldap *pldap, PUSER_INFO_3 ui, cygpsid &sid,
|
|||||||
WCHAR sidstr[128];
|
WCHAR sidstr[128];
|
||||||
|
|
||||||
if (get_user_profile_directory (sid.string (sidstr), profile, MAX_PATH))
|
if (get_user_profile_directory (sid.string (sidstr), profile, MAX_PATH))
|
||||||
home = (char *) cygwin_create_path (CCP_WIN_W_TO_POSIX, profile);
|
home = (char *) cygwin_create_path (CCP_WIN_W_TO_POSIX, profile);
|
||||||
}
|
}
|
||||||
return home;
|
return home;
|
||||||
}
|
}
|
||||||
@ -950,9 +950,9 @@ fetch_from_path (cyg_ldap *pldap, PUSER_INFO_3 ui, cygpsid &sid, PCWSTR str,
|
|||||||
while (*str && w < we)
|
while (*str && w < we)
|
||||||
{
|
{
|
||||||
if (*str != L'%')
|
if (*str != L'%')
|
||||||
*w++ = *str++;
|
*w++ = *str++;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (*++str)
|
switch (*++str)
|
||||||
{
|
{
|
||||||
case L'u':
|
case L'u':
|
||||||
@ -1135,7 +1135,7 @@ cygheap_pwdgrp::get_shell (cyg_ldap *pldap, cygpsid &sid, PCWSTR dom,
|
|||||||
break;
|
break;
|
||||||
case NSS_SCHEME_PATH:
|
case NSS_SCHEME_PATH:
|
||||||
shell = fetch_from_path (pldap, NULL, sid, shell_scheme[idx].attrib,
|
shell = fetch_from_path (pldap, NULL, sid, shell_scheme[idx].attrib,
|
||||||
dom, dnsdomain, name, full_qualified);
|
dom, dnsdomain, name, full_qualified);
|
||||||
break;
|
break;
|
||||||
case NSS_SCHEME_FREEATTR:
|
case NSS_SCHEME_FREEATTR:
|
||||||
if (pldap->fetch_ad_account (sid, false, dnsdomain))
|
if (pldap->fetch_ad_account (sid, false, dnsdomain))
|
||||||
@ -1961,7 +1961,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
|
|||||||
*wcpncpy (dom, arg.full_acc->dom->Buffer,
|
*wcpncpy (dom, arg.full_acc->dom->Buffer,
|
||||||
arg.full_acc->dom->Length / sizeof (WCHAR)) = L'\0';
|
arg.full_acc->dom->Length / sizeof (WCHAR)) = L'\0';
|
||||||
acc_type = arg.full_acc->acc_type;
|
acc_type = arg.full_acc->acc_type;
|
||||||
ret = acc_type != SidTypeUnknown;
|
ret = acc_type != SidTypeUnknown;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SID_arg:
|
case SID_arg:
|
||||||
@ -2280,7 +2280,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
|
|||||||
&& (sid_sub_auth_count (sid) <= 3 || sid_id_auth (sid) == 11))
|
&& (sid_sub_auth_count (sid) <= 3 || sid_id_auth (sid) == 11))
|
||||||
acc_type = SidTypeWellKnownGroup;
|
acc_type = SidTypeWellKnownGroup;
|
||||||
switch ((int) acc_type)
|
switch ((int) acc_type)
|
||||||
{
|
{
|
||||||
case SidTypeUser:
|
case SidTypeUser:
|
||||||
if (is_group ())
|
if (is_group ())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user