From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre =?UTF-8?Q?T=C3=A9choueyres?= Newsgroups: gmane.emacs.bugs Subject: bug#70415: 30.0.50; [Cygwin] `lock-file' creates a symlink with funny name Date: Tue, 16 Apr 2024 20:01:56 +0200 Message-ID: <87o7a9190r.fsf@killashandra.ballybran.fr> References: <861q75juvy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20100"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Katsumi Yamaoka , 70415@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 16 20:03:06 2024 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 1rwn98-0004yu-6Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Apr 2024 20:03:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwn8z-0008Ak-Ha; Tue, 16 Apr 2024 14:02:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwn8u-0008AH-T3 for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 14:02:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwn8t-0003tY-Mt for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 14:02:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwn95-0000dO-PM for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 14:03:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pierre =?UTF-8?Q?T=C3=A9choueyres?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Apr 2024 18:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70415 X-GNU-PR-Package: emacs Original-Received: via spool by 70415-submit@debbugs.gnu.org id=B70415.17132905392037 (code B ref 70415); Tue, 16 Apr 2024 18:03:03 +0000 Original-Received: (at 70415) by debbugs.gnu.org; 16 Apr 2024 18:02:19 +0000 Original-Received: from localhost ([127.0.0.1]:44969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwn8L-0000WO-3e for submit@debbugs.gnu.org; Tue, 16 Apr 2024 14:02:19 -0400 Original-Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]:50154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwn8H-0000VZ-3k for 70415@debbugs.gnu.org; Tue, 16 Apr 2024 14:02:15 -0400 Original-Received: from killashandra.ballybran.fr.free.fr (unknown [IPv6:2a01:e0a:1e2:f8b0:5794:36e1:2c11:514a]) by smtp4-g21.free.fr (Postfix) with ESMTPS id 4FAC019F574; Tue, 16 Apr 2024 20:01:57 +0200 (CEST) In-Reply-To: <861q75juvy.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Apr 2024 16:32:17 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283453 Archived-At: Le mardi 16 avril 2024 =C3=A0 16:32, Eli Zaretskii a =C3=A9c= rit : >> Date: Tue, 16 Apr 2024 21:33:07 +0900 >> From: Katsumi Yamaoka >>=20 >> As you know, Emacs creates a lock file when start editing a FILE >> by default, it is a symbolic link that is linked to a name >> looking like this: >>=20 >> .#FILE -> username@hostname.1234 >>=20 >> Where 1234 is Emacs' pid. It will be removed after saving >> the FILE. Even if the lock file is left, Emacs will remove it >> when opening the FILE for the next time. However, recently lock >> files no longer got deleted on at least the latest Cygwin on >> Windows 11. It is (probably) because Emacs came to create lock >> files with a funny name like this: >>=20 >> .#FILE -> username@hostname.1234:-11644473599 >>=20 >> For that case `(unlock-file "FILE")' issues this warning: >>=20 >> Warning (unlock-file): Unlocking file: Invalid argument, FILE, ignored > > Does Cygwin support file names with a colon, such as the above? > > The part after the colon is the system boot time, and is used on all > Posix hosts. I don't know why it prints as a negative value on > Cygwin, but the question is: does Cygwin support such file names? If > not, what are the restrictions on Cygwin file names that we need to > observe when we create lock files? This is likely a question for the > Cygwin mailing list, or maybe you already know the answer. > > Several internal functions in filelock.c know about the > USER@HOST.PID:BOOT_TIME format of the lock file names, so if there are > any Cygwin-specific restrictions, they will all need to be patched > accordingly. > May be this has something to do with NTFS Streams ? See : https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc= /c54dec26-1551-4d3a-a0ea-4fa40f848eb3 Disregard if not relevant. >> I don't know what ":-11644473599" is, but I did the bisection >> and found that it started with this change: >>=20 >> ,---- >> | commit 393f58c85aeb78f814866ccaad9ae7efd3fa6766 >> | Author: Adam Porter >> | Date: Fri Mar 8 23:43:14 2024 -0600 >> | >> | 'vtable-update-object' can now be called with one argument > > This is extremely unlikely to have caused the problem. It is more > likely that some change in Cygwin and/or in the Gnulib's boot-time > module causes this now. > > Also, do you see this in "emacs -Q"? If not, perhaps some local > customizations cause this? >