From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Ki=C3=AAn_?= =?UTF-8?Q?Nguy=E1=BB=85n?= Quang Newsgroups: gmane.emacs.bugs Subject: bug#57386: 29.0.50; support make-symbolic-link without admin priviledge on Windows Date: Thu, 25 Aug 2022 17:52:50 +0900 Message-ID: References: <838rnd638m.fsf@gnu.org> <83wnax4hw5.fsf@gnu.org> <83h72050tc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000012fc505e70cedd7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57386@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 11:36:31 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR9Hq-00015T-OL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 11:36:30 +0200 Original-Received: from localhost ([::1]:58762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR9Hp-0001xN-NV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 05:36:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR8ck-00009R-BL for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 04:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR8ck-0002im-2L for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 04:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oR8cj-0002Ty-Pm for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 04:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Ki=C3=AAn_?= =?UTF-8?Q?Nguy=E1=BB=85n?= Quang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 08:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57386 X-GNU-PR-Package: emacs Original-Received: via spool by 57386-submit@debbugs.gnu.org id=B57386.16614176029495 (code B ref 57386); Thu, 25 Aug 2022 08:54:01 +0000 Original-Received: (at 57386) by debbugs.gnu.org; 25 Aug 2022 08:53:22 +0000 Original-Received: from localhost ([127.0.0.1]:48853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR8c6-0002T5-0X for submit@debbugs.gnu.org; Thu, 25 Aug 2022 04:53:22 -0400 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:37469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR8bv-0002Si-E5 for 57386@debbugs.gnu.org; Thu, 25 Aug 2022 04:53:21 -0400 Original-Received: by mail-ej1-f53.google.com with SMTP id h22so27925519ejk.4 for <57386@debbugs.gnu.org>; Thu, 25 Aug 2022 01:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=YFZYKZUg2cakRBnBI/n5/a7ZTxP1Ldesru3SJiKyT20=; b=NEFJ2J9ndVZzBndrNSVupACznPBlo1AyyeHG7T/39phfc22fL9Hrx7ha2vMMpfiENm OZ4EyoH6XjPCVf2sDpbW/wAYjmq2i2ItakwKEV+aeeelw1kL7APJe8gyNue9dPeewUsR 6HYkr61yzWn4FzcrrXRwYoh9I4Rd3N0TWJhLMgw0T8eCJA1XL0sjzpRTENZBgKaCidfK AxWXCw2CFBeQsRf46yBXWizDpgmFSrz/4kzRZhRPapVFSto5V20X2nSCb7qw5ruy02Yt aEklgxSp40FQUOyItrRdCbA2a9xAPyF1xuRPnqq5fbOMe/zYiPsN5pfJ1OYmmzMwscFO 8ihw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=YFZYKZUg2cakRBnBI/n5/a7ZTxP1Ldesru3SJiKyT20=; b=QaGqDSrwD/nOZ6veCiFBrCqQRn/AMkiYZrEi6WsmA/JVmzxHEm97vhXwWD0wITy9cH OLDGKwC3RU9po1d6frAysTl5i+kyabzgJTySIKKa6YRS7zmHfTy5XX7rTSUvpDn4AZ+m UJsRkW9GvOI+yjhVL8BmO+0XwnxGM2XK7/eXzfbchIPH/HOsKsZidI3eT5xJsxvyW26/ KhsODGCfcA4wGW/VP2IdVeDop/N0Q1j1cX7K+X05EqCY80OE60pe5GO8E2H0NxzkqUAz GxxdxK5pTUqNtzuKbwY25U5xnQXFxoymQrBNUeLEpJdmG59DItXa4rnBROodbWJ+SenH wpPQ== X-Gm-Message-State: ACgBeo0BjgMsvmWGtj9rerIQ9LbgrXIJhTVlXHpuv3bKXzhB4QN8kC93 +bm0aJwVckplWDxXhyg6xMC3bAbxEd0M0zdsUY58Ac/+yP4= X-Google-Smtp-Source: AA6agR7//p8WL6iwXV0jYg8SxWYBKJRVFaWx3NyU02K/MO2kpwc9vbu7ky+yFAH+r5ayd3P3YTqOc7jfJVgRHnUsCl4= X-Received: by 2002:a17:907:209c:b0:731:27bb:da8c with SMTP id pv28-20020a170907209c00b0073127bbda8cmr1695107ejb.555.1661417585453; Thu, 25 Aug 2022 01:53:05 -0700 (PDT) In-Reply-To: <83h72050tc.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240692 Archived-At: --000000000000012fc505e70cedd7 Content-Type: text/plain; charset="UTF-8" > > > That's a separate problem, which we will resolve if and when it > becomes relevant. For now, this problem doesn't exist, since AFAIK > there are no features yet which we want to use that are available only > in Windows 11 and later. So please assume that version checks in > Emacs are reliable, and always will be, no matter what MS says about > that. > > Thanks. > The new flag is available starting from Windows 10 Creator update, which means two (or 3? I don't know) updates after the first Windows 10 release. Since the version returned for all Windows 10 are the same, you see, that's the problem. I think the error is already caught and should be replaced with the new one if we retry calling the API, can you elaborate more on how it can still affect Emacs? Is there somewhere Emacs is calling GetLastError without invoking the API so the stored error is mistakenly used? Thanks --000000000000012fc505e70cedd7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



That's a separate problem, which we will resolve if and when it
becomes relevant.=C2=A0 For now, this problem doesn't exist, since AFAI= K
there are no features yet which we want to use that are available only
in Windows 11 and later.=C2=A0 So please assume that version checks in
Emacs are reliable, and always will be, no matter what MS says about
that.

Thanks.

The new flag is available startin= g from Windows 10 Creator update, which means two (or 3? I don't know) = updates after the first Windows 10 release.
Since the version ret= urned for all Windows 10 are the same, you see, that's the problem.

I think the error is already caught and should be rep= laced with the new one if we retry calling the API, can you elaborate more = on how it can still affect Emacs?
Is there somewhere Emacs is cal= ling GetLastError without invoking the API so the stored error is mistakenl= y used?

Thanks

--000000000000012fc505e70cedd7--