From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57386: 29.0.50; support make-symbolic-link without admin priviledge on Windows Date: Thu, 25 Aug 2022 12:57:32 +0300 Message-ID: <83wnaw3asz.fsf@gnu.org> References: <838rnd638m.fsf@gnu.org> <83wnax4hw5.fsf@gnu.org> <83h72050tc.fsf@gnu.org> <83y1vc3d1l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34513"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57386@debbugs.gnu.org To: =?UTF-8?Q?Ki=C3=AAn_?= =?UTF-8?Q?Nguy=E1=BB=85n?= Quang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 11:58:15 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 1oR9cr-0008ls-18 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 11:58:13 +0200 Original-Received: from localhost ([::1]:52464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR9cp-00044a-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 05:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR9cg-00044P-S7 for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 05:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR9cg-00050w-Il for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 05:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oR9cg-0006PO-A4 for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 05:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 09:58:02 +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.166142145024595 (code B ref 57386); Thu, 25 Aug 2022 09:58:02 +0000 Original-Received: (at 57386) by debbugs.gnu.org; 25 Aug 2022 09:57:30 +0000 Original-Received: from localhost ([127.0.0.1]:49023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR9c9-0006Oc-Pb for submit@debbugs.gnu.org; Thu, 25 Aug 2022 05:57:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR9c7-0006OP-Oi for 57386@debbugs.gnu.org; Thu, 25 Aug 2022 05:57:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR9c2-0004sU-Cj; Thu, 25 Aug 2022 05:57:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=D4DoEh83X5CyKJN0aCsCLKUnbEI9GWCWwNXBr9Z6SAs=; b=DqxQZD68TgwRYu/jMqPc Bc7/gTg0QB1tDZ3l9Kv3MS9KMx2tnFJX3+iXeyxq7mVn0dh0NjWPCppZOl7ps117AsVcxjEhyHjsm +iO5skW9j6H9hnhAqEwOtCALdatymHYJW7Vng24QcAvjTIHPOaJ3L3fUWuwYqe0rkli3chsv4kRJM TvjSBuLIwXEzoyrEipMIJUwL4JEeFjr31kvBcdUD+GX+WFyqFjad1M2MBdnWsYo0rMWL8UNPg0htt 7zQ8y9roaaSQcnKMTx0STxNdi5umefxvC6oGubxPe7CRmugbXlhSc5rtpEYCUaW85FcY8T57VwhOk IuQBbkB0wNEdXg==; Original-Received: from [87.69.77.57] (port=4649 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR9c1-00057g-RU; Thu, 25 Aug 2022 05:57:22 -0400 In-Reply-To: (message from =?UTF-8?Q?Ki=C3=AAn_?= =?UTF-8?Q?Nguy=E1=BB=85n?= Quang on Thu, 25 Aug 2022 18:51:30 +0900) 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:240695 Archived-At: > From: Kiên Nguyễn Quang > Date: Thu, 25 Aug 2022 18:51:30 +0900 > Cc: 57386@debbugs.gnu.org > > > When you call an API with a parameter that is invalid, you are risking > > an exception, depending on the API and the build (debug or not). This > > has various unpleasant consequences; in the worst case, the Emacs > > process could be terminated. As documented, the problem is limited to > > CRT functions, but our general policy is to avoid that even when using > > the Win32 APIs. And version check is a simple enough way of avoiding > > that, so I see no reason not to do it here. > > Okay, that makes sense. Although I think that's the problem of CRT APIs only, as API should never throw > exceptions, which is a foreign concept to ABI and requires an exact library match to handle correctly > > The new patch is attached. Thanks, but I think you sent a wrong patch?