From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 61BFB384F485; Sun, 4 Dec 2022 13:27:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61BFB384F485 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670160447; bh=GmvAP+LYU4V2JepgUsQZRry19gG5swK+nTGa6QpeRFY=; h=From:To:Subject:Date:From; b=MatrowutpkEH2/iRmPVnnF9+5Ue6uj4IpEzmD2q0KlTtt0JnAG1Gmc47gKRaOBFDo jPaS9hj6AbmNNNJr7/g8KLEXPd85CvZbdAUOofmRqg7NsxM3p7L37tfJdAczgysjlk 7ryor8m5aFNF2aGCKM91a+uLQ+PxQFkBjoId00B4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: drop wincap::has_microsoft_accounts X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 70d77662f5742718eb37dbd9e373fe7ab12b8c36 X-Git-Newrev: 5478c5a9ec1397dd5fd44576f238afb59c67d250 Message-Id: <20221204132727.61BFB384F485@sourceware.org> Date: Sun, 4 Dec 2022 13:27:27 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D5478c5a9ec1= 397dd5fd44576f238afb59c67d250 commit 5478c5a9ec1397dd5fd44576f238afb59c67d250 Author: Corinna Vinschen AuthorDate: Tue Nov 15 17:15:44 2022 +0100 Commit: Corinna Vinschen CommitDate: Sun Dec 4 14:01:41 2022 +0100 Cygwin: drop wincap::has_microsoft_accounts =20 Only required for Windows 7. =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/local_includes/wincap.h | 2 -- winsup/cygwin/uinfo.cc | 2 +- winsup/cygwin/wincap.cc | 12 ------------ 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/winsup/cygwin/local_includes/wincap.h b/winsup/cygwin/local_in= cludes/wincap.h index 0a2ad7b59159..a99d02c4ca65 100644 --- a/winsup/cygwin/local_includes/wincap.h +++ b/winsup/cygwin/local_includes/wincap.h @@ -17,7 +17,6 @@ struct wincaps ops generated by gcc are off by 4 bytes. */ struct __attribute__ ((aligned (8))) { unsigned is_server : 1; - unsigned has_microsoft_accounts : 1; unsigned has_new_pebteb_region : 1; unsigned has_broken_whoami : 1; unsigned has_unprivileged_createsymlink : 1; @@ -74,7 +73,6 @@ public: } intptr_t IMPLEMENT (mmap_storage_high) bool IMPLEMENT (is_server) - bool IMPLEMENT (has_microsoft_accounts) bool IMPLEMENT (has_new_pebteb_region) bool IMPLEMENT (has_broken_whoami) bool IMPLEMENT (has_unprivileged_createsymlink) diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 6df8c7bbbbe9..2dd0c6e79da3 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -2200,7 +2200,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t = &arg, cyg_ldap *pldap) bool its_ok =3D false; if (sid_id_auth (sid) =3D=3D 12) its_ok =3D true; - else if (wincap.has_microsoft_accounts ()) + else /* Microsoft Account */ { USER_INFO_24 *ui24; if (NetUserGetInfo (NULL, name, 24, (PBYTE *) &ui24) diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index 7ee8f4b06ea8..ce64289f87e3 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -24,7 +24,6 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_com= mon"), shared)) =3D { mmap_storage_high:__MMAP_STORAGE_HIGH_LEGACY, { is_server:false, - has_microsoft_accounts:false, has_new_pebteb_region:false, has_broken_whoami:true, has_unprivileged_createsymlink:false, @@ -53,7 +52,6 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_com= mon"), shared)) =3D { mmap_storage_high:__MMAP_STORAGE_HIGH_LEGACY, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -82,7 +80,6 @@ wincaps wincap_8_1 __attribute__((section (".cygwin_dll_c= ommon"), shared)) =3D { mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -111,7 +108,6 @@ wincaps wincap_10_1507 __attribute__((section (".cygwi= n_dll_common"), shared)) mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -140,7 +136,6 @@ wincaps wincap_10_1607 __attribute__((section (".cygwi= n_dll_common"), shared)) mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:false, has_broken_whoami:false, has_unprivileged_createsymlink:false, @@ -169,7 +164,6 @@ wincaps wincap_10_1703 __attribute__((section (".cygwin= _dll_common"), shared)) =3D mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -198,7 +192,6 @@ wincaps wincap_10_1709 __attribute__((section (".cygwin= _dll_common"), shared)) =3D mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -227,7 +220,6 @@ wincaps wincap_10_1803 __attribute__((section (".cygwin= _dll_common"), shared)) =3D mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -256,7 +248,6 @@ wincaps wincap_10_1809 __attribute__((section (".cygwin= _dll_common"), shared)) =3D mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -285,7 +276,6 @@ wincaps wincap_10_1903 __attribute__((section (".cygwin= _dll_common"), shared)) =3D mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -314,7 +304,6 @@ wincaps wincap_10_2004 __attribute__((section (".cygwin= _dll_common"), shared)) =3D mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true, @@ -343,7 +332,6 @@ wincaps wincap_11 __attribute__((section (".cygwin_dll_= common"), shared)) =3D { mmap_storage_high:__MMAP_STORAGE_HIGH, { is_server:false, - has_microsoft_accounts:true, has_new_pebteb_region:true, has_broken_whoami:false, has_unprivileged_createsymlink:true,