GNU bug report logs - #75538
31.0.50; make-symbolic-link arg broken on ms-windows

Previous Next

Package: emacs;

Reported by: kkkykin <at> foxmail.com

Date: Mon, 13 Jan 2025 15:40:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "kkky" <kkkykin <at> foxmail.com>
To: "Eli Zaretskii" <eliz <at> gnu.org>
Cc: 75538 <75538 <at> debbugs.gnu.org>
Subject: bug#75538: ��� bug#75538: 31.0.50; make-symbolic-link arg broken on ms-windows
Date: Tue, 14 Jan 2025 19:44:37 +0800
[Message part 1 (text/plain, inline)]
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"                                                                                    <eliz <at> gnu.org&gt;;
·¢ËÍʱ¼ä:&nbsp;2025Äê1ÔÂ14ÈÕ(ÐÇÆÚ¶þ) Á賿1:08
ÊÕ¼þÈË:&nbsp;"kkky"<kkkykin <at> foxmail.com&gt;;
³­ËÍ:&nbsp;"75538"<75538 <at> debbugs.gnu.org&gt;;
Ö÷Ìâ:&nbsp;Re: bug#75538: 31.0.50; make-symbolic-link arg broken on ms-windows



&gt; From: kkkykin <at> foxmail.com
&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?
[Message part 2 (text/html, inline)]

This bug report was last modified 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.