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 00:33:58 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000aeffee05e6fe69fa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9784"; mail-complaints-to="usenet@ciao.gmane.io" To: 57386@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 17:41:49 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 1oQsVp-0002Pk-CB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 17:41:49 +0200 Original-Received: from localhost ([::1]:47436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQsVo-00023N-El for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 11:41:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQsPK-0004k1-2Z for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:35:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQsPG-0007Dn-OG for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:35:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQsPG-0000VP-Al for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:35:02 -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: Wed, 24 Aug 2022 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57386 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16613552651891 (code B ref -1); Wed, 24 Aug 2022 15:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Aug 2022 15:34:25 +0000 Original-Received: from localhost ([127.0.0.1]:47717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQsOf-0000UR-3K for submit@debbugs.gnu.org; Wed, 24 Aug 2022 11:34:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQsOb-0000UH-10 for submit@debbugs.gnu.org; Wed, 24 Aug 2022 11:34:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQsOZ-0004es-GO for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:34:20 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:34409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQsOW-0007C2-JS for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:34:19 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id y3so7880742ejc.1 for ; Wed, 24 Aug 2022 08:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=3M0TnRWJtmoHlR3amzYOHHjpBHi1Ebwq4ImC4MfKXWU=; b=oHs3fV59ky7v8NNjcQxLBvUUlawbI0iwJMtEboY/Zo5d7y6zeKgiuWnuI8K0Tpp8vK T7hAuxzPrsCJ9/+O7xVMEqz4hRu2AQ3FgzKajWpJDevct/OUiz9R0YkrR3mlBBIypweO 6LbIAwC7aw60OvSlPpBeUGpBvPKIn+UmKKR5gAHYd04ro0NEdFUVpqRaNYWEXUtOHy+a 7a7d0QmCeB7cBZMYwaF8SzT7c0b/vyqP78bCAOIHpLwp8haEVFvb+CG9lXx3/7JB9yrv lktj+0B9LqHEfKLGMrlUtiMHDeAh86q4TaOpE+BLUwZPJyya9rQ0l2yxEazo3sPNPTBc XGQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=3M0TnRWJtmoHlR3amzYOHHjpBHi1Ebwq4ImC4MfKXWU=; b=xwIhk4/Qk3nhyBnxwhrkf7ZSrH9FKRFSdVryaw28Wr/O1pAtK1K0wguJ1KOIQ9zAgw eNmganFyNF1G4gLNiagw8qeYnrgqnQUKgxJFZ5MApc/Lmoe9IcehsS3tDU4oa4RbI9Ul 9A+cHPSGOlsAUolV41AkENXuf6klXW1zkXmgoZE6c4w45QKCHIV34SlzYXuXURim/CJr cgIlkpIUcwluWepL3dvw6YSZcs0IReFpvPYCDdHpKEMLuxw1DaqhvkKnIVUx8ACs9qbJ Nl5Znwv5UsqKTa6loCP7ZG5SriulxkSCnfWKEv9u5HsFT3EDM+xPyyipRQmzlx/tKej6 c5Qw== X-Gm-Message-State: ACgBeo0igIqGZ7ORmltseWGypaCJdS+cOuLHiJ77ExBU5IiMuW/WWozE uwOoOL+GGt1VAb/bKiSnFm1C0N/yyzWzT8JFEH868s5QYTrvJQ== X-Google-Smtp-Source: AA6agR4TXAuyxp3HKe1NTImuXrng8uEsaxb72HhhQhAJX3RO5yGqOpfs17TQn4ZUbUci5dNUECjFWCqkFz6Yx7xznDA= X-Received: by 2002:a17:907:2d14:b0:73d:8837:5b63 with SMTP id gs20-20020a1709072d1400b0073d88375b63mr3182292ejc.567.1661355252682; Wed, 24 Aug 2022 08:34:12 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=kien.n.quang@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:240639 Archived-At: --000000000000aeffee05e6fe69fa Content-Type: multipart/alternative; boundary="000000000000aeffec05e6fe69f8" --000000000000aeffec05e6fe69f8 Content-Type: text/plain; charset="UTF-8" The CreateSymbolicLink Win32API has a flag that allows creating sym-links without admin privileges SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE. This patch added that support for w32 Emacs. --000000000000aeffec05e6fe69f8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The=C2=A0CreateSymbolicL= ink Win32API has a flag that allows creating sym-links without admin privil= eges=C2=A0SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE.
This patc= h added that support for w32 Emacs.


--000000000000aeffec05e6fe69f8-- --000000000000aeffee05e6fe69fa Content-Type: application/octet-stream; name="0001-symlink-allow-w32-user-to-create-symlink-without-adm.patch" Content-Disposition: attachment; filename="0001-symlink-allow-w32-user-to-create-symlink-without-adm.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l77s051f0 RnJvbSA0YzVjMmI5NDI0NzNjNjczN2VjOWY2YWQwZWU1NTU4M2VlOTg1ODc1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBLaWVuIE5ndXllbiA8a2llbi5uLnF1YW5nQGdtYWlsLmNvbT4K RGF0ZTogV2VkLCAyNCBBdWcgMjAyMiAyMzoxOTozNSArMDkwMApTdWJqZWN0OiBbUEFUQ0hdIGFs bG93IHczMiB1c2VyIHRvIGNyZWF0ZSBzeW1saW5rIHdpdGhvdXQgYWRtaW4gcHJpdmlsZWdlZAoK KiBzcmMvdzMyLmMgKHN5bWxpbmspOiBhbGxvdyB3MzIgdXNlciB0byBjcmVhdGUgc3ltbGluayB3 aXRob3V0IGFkbWluIHByaXZpbGVnZWQKCi0tLQogc3JjL3czMi5jIHwgNyArKysrKy0tCiAxIGZp bGUgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBh L3NyYy93MzIuYyBiL3NyYy93MzIuYwppbmRleCBjYmNmY2RkNGYuLjIzYzBjODM5NiAxMDA2NDQK LS0tIGEvc3JjL3czMi5jCisrKyBiL3NyYy93MzIuYwpAQCAtNTk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