Subject: 回复： bug#75538: 31.0.50; make-symbolic-link arg broken on ms-windows

From: "kkky" <[email-masked]>
Date: Tue, 14 Jan 2025 19:44:37 +0800

Thank you for your help.

The error is `file-error "Making symbolic link" "Operation not permitted"`

When i run as administrator, it is solved.

------------------ 原始邮件 ------------------
发件人:                                                                                                                        "Eli Zaretskii"                                                                                    <[email-masked]&gt;;
发送时间:&nbsp;2025年1月14日(星期二) 凌晨1:08
收件人:&nbsp;"kkky"<[email-masked]&gt;;
抄送:&nbsp;"75538"<[email-masked]&gt;;
主题:&nbsp;Re: bug#75538: 31.0.50; make-symbolic-link arg broken on ms-windows

&gt; From: [email-masked]
&gt; Date: Mon, 13 Jan 2025 22:52:28 +0800
&gt; 
&gt; 
&gt; Here is an example, this bug seems only on ms-windows:
&gt; 
&gt; (let ((tmp (make-temp-file "link-test"))
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; (link (make-temp-name "link")))
&gt; &nbsp; (make-symbolic-link tmp link t) ; here is ok
&gt; &nbsp; ;; error occur, the third argument should suppress the error
&gt; &nbsp; (make-symbolic-link tmp link t))

I cannot reproduce this, your example works for me as expected on
MS-Windows (same version as you are using), and creates the symlink
without any errors.&nbsp; What error message did you see from the second
call?

Maybe your Windows user doesn't have the necessary privileges or
something?&nbsp; What happens if you run Emacs from a cmd.exe window that
was started by "Run as Administrator"?

Or maybe your filesystem on which you do this is something strange.
is that a local disk formatted as NTFS?&nbsp; What happens if you insert
(sleep-for 10) between the two calls to make-symbolic-link?