diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-09-05 09:46:26 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-09-05 09:46:26 +0000 |
commit | acc511d184cd702e171729771c80e62545f8e0b3 (patch) | |
tree | 48f769e946af30b81826ed48142e378eb186d4af /winsup/cygwin/winlean.h | |
parent | e7565f10886bac86410db6eb6fda47da1d04ac9b (diff) | |
download | newlib-acc511d184cd702e171729771c80e62545f8e0b3.zip newlib-acc511d184cd702e171729771c80e62545f8e0b3.tar.gz newlib-acc511d184cd702e171729771c80e62545f8e0b3.tar.bz2 |
* uinfo.cc (pwdgrp::fetch_account_from_windows): Handle APPLICATION
PACKAGE AUTHORITY SIDs.
* winlean.h (DNLEN): Raise to 31. Explain why.
Diffstat (limited to 'winsup/cygwin/winlean.h')
-rw-r--r-- | winsup/cygwin/winlean.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/winsup/cygwin/winlean.h b/winsup/cygwin/winlean.h index 1629948..63cebdb 100644 --- a/winsup/cygwin/winlean.h +++ b/winsup/cygwin/winlean.h @@ -74,12 +74,16 @@ details. */ #undef CRITICAL #endif -/* So-called "Microsoft Account" SIDs have a netbios domain name - "MicrosoftAccounts". The problem is, while DNLEN is 15, that domain - name is 16 chars :-P So we override DNLEN here to be 16, so that calls - to LookupAccountSid/Name don't fail if the buffer is based on DNLEN. */ +/* So-called "Microsoft Account" SIDs (S-1-11-...) have a netbios domain name + "MicrosoftAccounts". The new "Application Container SIDs" (S-1-15-...) + have a netbios domain name "APPLICATION PACKAGE AUTHORITY" + + The problem is, DNLEN is 15, but these domain names have a length of 16 + resp. 29 chars :-P So we override DNLEN here to be 31, so that calls + to LookupAccountSid/Name don't fail if the buffer is based on DNLEN. + Hope that's enough for a while... */ #undef DNLEN -#define DNLEN 16 +#define DNLEN 31 /* When Terminal Services are installed, the GetWindowsDirectory function does not return the system installation dir, but a user specific directory |