From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#70415: 30.0.50; [Cygwin] `lock-file' creates a symlink with funny name Date: Mon, 29 Apr 2024 19:05:35 -0400 Message-ID: References: <861q75juvy.fsf@gnu.org> <86zftsgoxt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3146"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70415@debbugs.gnu.org To: Eli Zaretskii , Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 30 01:07:19 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 1s1a5e-0000c6-CP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Apr 2024 01:07:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1a57-0006hP-03; Mon, 29 Apr 2024 19:06:45 -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 1s1a53-0006h7-Uj for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2024 19:06:42 -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 1s1a53-0002tM-Kz for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2024 19:06:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s1a5N-0004nT-Hz for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2024 19:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Apr 2024 23:07:01 +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.171443197218420 (code B ref 70415); Mon, 29 Apr 2024 23:07:01 +0000 Original-Received: (at 70415) by debbugs.gnu.org; 29 Apr 2024 23:06:12 +0000 Original-Received: from localhost ([127.0.0.1]:58907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1a4Z-0004n2-N2 for submit@debbugs.gnu.org; Mon, 29 Apr 2024 19:06:12 -0400 Original-Received: from mail-dm6nam10on2103.outbound.protection.outlook.com ([40.107.93.103]:37053 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1a4W-0004mw-3A for 70415@debbugs.gnu.org; Mon, 29 Apr 2024 19:06:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YbBgCgzKRiNyz1Cxb3FkHK/RUCC8IxzieZ6XvGIhuBdOekbihKridSzMOVyw+Gm7653pdMV4HZr0I0qdJTDHUO+ygNfevtSE5SY/uevXS5RVZi9eMlyb5XQKzxT5thS+hScZ4UcDiJQauws8mVnjcRQa3/5gzVD8EpOc3lVyGB6EYkSv8Lpk9BL9yx33I3bJPAnwObbqpIAxKyJMQeRz8MFg2ZIA8r6lRWkj98WYrbHFJwbgh+cfc0D2TvMfw3yMlaCrjutYX1+epwZdBuQQA7PNsseG15AN2bN+pJ91J1cs8/ewqnQK38z4rOpla0fyOHC80gbtPZbGNn6io0gxbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bo/bbo+iam946X/9zMlnhOh83SvIV60W/D6mNqn1evE=; b=FqQYfK/+dJsWKDHbZ6k4jXfBypFFhPZCufHa9zneOZS9pwAHFB5OJ2cL1M22eSD7dCGc0HUw2EoJ9esdFl9zetiNiwRsbk6p8MPB6F3Tu+brF+C0XVmTsAbOVUBArOQxiIn6kG2lbrg32lv6pTdKMonFDmaJpqWtWf5LvxVqEe8RxFOY8vuETjAHiOteWedXqibd1qYp/Xs+v+iMcT+MsYPAMGDOW5PKsRvWSI9oxqxhOx2ofra31Y43PMljBOq39q48fxw/uarMy7inSlyk4CBqmV3VBACDDUjI8tmU967lh647mJh6VwiTwS/9UFCaVfkRcfn2KoEjaJksvkPniQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bo/bbo+iam946X/9zMlnhOh83SvIV60W/D6mNqn1evE=; b=L5kdy1/stMHs3r9DTm4ain4L/Sr6ZiqVkYWI6knCmzt6CwAg0Jc27YK6YmOEVua38we2EYySCo80odXayuKx8uWA0NeLq58f2Q8p1OCpvZ6Y3dqG6FR6NmdbWWofWJZI3kJsMttdU2oWhjtvWNr9LjhVHOSfu9BU0g5WusgYpjc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Original-Received: from SN6PR04MB5151.namprd04.prod.outlook.com (2603:10b6:805:90::25) by MN2PR04MB6781.namprd04.prod.outlook.com (2603:10b6:208:1e0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Mon, 29 Apr 2024 23:05:39 +0000 Original-Received: from SN6PR04MB5151.namprd04.prod.outlook.com ([fe80::1542:7dd6:d249:f873]) by SN6PR04MB5151.namprd04.prod.outlook.com ([fe80::1542:7dd6:d249:f873%4]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 23:05:39 +0000 Content-Language: en-US In-Reply-To: X-ClientProxiedBy: CH2PR15CA0020.namprd15.prod.outlook.com (2603:10b6:610:51::30) To SN6PR04MB5151.namprd04.prod.outlook.com (2603:10b6:805:90::25) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB5151:EE_|MN2PR04MB6781:EE_ X-MS-Office365-Filtering-Correlation-Id: 41a9c758-cce8-4844-4e5a-08dc68a0e2fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: 03KOd5Nqpnp7c7GpYfNyrRuIZWo95US7lRh1x3oJ4468ETXCp9KLfx7awnO95i9ONpVihxjqjnQRvUhCivyKOV2JRz7g9oGGDCY00CbI0/X7SHn5KzobW1e+VgMvo6Y3RHPUXLWzi+X0cO4fubZjVOH4QBu+LmpgLDjUUU4c4MHzpGx8gyHvPGtg3YOTQEozMx5X1uazBOXD1SnwRFKVp2q4rya0jArvxCwSz85ULVT4iLJ70+Sog09F2vrIWS9rDjUU5cOaUFZRwdzA9EVNjWxzKnku5U/frbuDmG5Zdhnlr+wPLuIJBNuD1vo2zMk5/g9t/rcfkL3hB2AA2PUgSV36kQOsOY7J+6cNuWDfRmhAC/OLH6XEwg7PN8LVfhYdubXy3ewUvSEee6lJ54EAiH1hSo2+/OdSYcCIxv2D5feLQxC3k2R2Rr0yQyO4mfS/slmXu1Uw4cJSfyHwwvUeyFFoMIVq+GdKxeTKjjcc/WS+D5fBveX0U6Snh6ZZOBB6J6DJaCpBsTnb4+uyQCARf9Pzum7LCoDoPTMwWbLbPZcnlqWUGPVnKI2jyZnbTJdsjunEMd2y1HRYcsrEUH16ye3TPuNiXfx23TlQsPL/vEEOmBhyTtHmVfi5iWT0pkiZcopEToXbUwzAckdrikkiPwm37J1zlO77jsBnLls/T55mKirnP+IorMPHS4zSb1n26liG82YbngDu8MtYd5y3zK37hKBKkAFuC2f0oL5fHOVYBhPwfhT2tbQQoamtM lkpYo0lvXxlINy9Er+Ipw4C7YzOZzGlbChuXzDzWUISoBdrbAi9I/vbyE6W+DKxbED3H5uyUKUQ4H1qiOi1RHrK0u1j/4BJqx0 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR04MB5151.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005)(366007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GR1e1zVWEYbVdwXvx2C+af67zBrZCD3U+4hNHWxmG+kvRtHw9b2km7FHVTXBc13MvxinjpCfMXUhLMFi1WRWtUERs+FHhiJB/AT8FBv84WwUsRodIFzk3POZakcNhsm9Ie369aJ7aOfwudqB1sTsDiZ9gQEPXCcF8Cgcm/3PlW5vraI0NTRvCuGAg+q5jkrWH6ObEubWH4EzvWI42OarA3WhIAvrCJBqlR7tDORAgOiHFuGekH99rED0FtBUU2vwe90Mv6wTqTFc4ZVSA6GlXlDbHBn9FV7ItzIetxo05+rONyZfWpABtaDaHl7ZeVSXZE7ql1kZSIbYR+TkHsNBfLN2pgL+wjmvKJ9xNfzwIn1CNwe5Git1QP+fDcCkb5rgRNVGZVtBE27PQeK3P5rh8G5ZY4zvX8wNOvw+oTWunzcalWrNtE70008WDGsBUD1zrj4mYLHZT9xVYZenJWTH4frDK11Y1Gt3pJFaGTl2aUxqcLTeHxrDliDAKSp3L/NyEija6dF8WjCVY5bDC+R+Kaq89QB0whS6F56VnJqSOMemR7/Yt367oLPvIlXLbVpZuX997uWQ/o2g/IyuEHvJdumycOFaFOZ83m1HjxFRkhNTuA3V2PS/KQ80XtCLL0vOZb3A+z4IwDaxyqLxrrtKT3KFBbJ5d40GYslEIIcHWXaocN/fmnTAeH29P7xLYroFYW/4lIXIsJ6idO/IWZouxR/7YUpWUiXFphAwqno7RurccT+8i1s0pI2cgr W62ErBpKbwA3e6DTJBiy9tIFTcLNmxO9Y0t1bEUiXTbURZy80IWqxPTaPiFNwuLSH2WVKP/4hY4m0Wib/jcbJA/pISTzNWejql X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 41a9c758-cce8-4844-4e5a-08dc68a0e2fa X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB5151.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 23:05:39.3054 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: d4hKfTR2MnTOzbWfL3oDFC1Ri92DhRpq/jE+F7KQDNO/O2SthO1svBVyCSSCk9zaQz7Q7Cr/QbuGddoj4n3jcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6781 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:284180 Archived-At: On 4/22/2024 12:15 PM, Ken Brown wrote: > On 4/17/2024 8:21 AM, Eli Zaretskii wrote: >>> Date: Wed, 17 Apr 2024 08:58:42 +0900 >>> From: Katsumi Yamaoka >>> Cc: 70415@debbugs.gnu.org >>> >>> On Tue, 16 Apr 2024 16:32:17 +0300, Eli Zaretskii wrote: >>>>> .#FILE -> username@hostname.1234:-11644473599 >>>>> For that case `(unlock-file "FILE")' issues this warning: >>>>> Warning (unlock-file): Unlocking file: Invalid argument, FILE, ignored >>> >>>> The part after the colon is the system boot time, and is used on all >>>> Posix hosts. >>> >>> Oh, I had never seen it until recently.  Thanks. >> >> The question is: why it started appearing only recently?  The code in >> filelock.c hasn't changed since last December, if not earlier, so if >> this started happening recently, it could only be because Gnulib's >> get_boot_time or its Cygwin implementation changed, such that it was >> previously returning zero whereas now it returns non-zero (which >> triggers the addition of the ":BOOT_TIME" part to the file name). >> >>>>> | commit 393f58c85aeb78f814866ccaad9ae7efd3fa6766 >>>>> | Author: Adam Porter >>>>> | Date:   Fri Mar 8 23:43:14 2024 -0600 >>> >>>> 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. >>> >>> Indeed.  But the fact is that Emacs built with that revno adds >>> a colon and a negative number to a link name and the one built >>> with just before it does not.  No problem on 29.3.50 and earlier, >>> either (i.e., not add a colon and numbers). >> >> Then please step with a debugger through the relevant code in >> filelock.c, before and after that change, and see why they are >> different.  I cannot explain that, even after doing "git log -L" on >> all of filelock.c: the most recent change of the related code was in >> Aug 2023, AFAICT, which is a very far cry from Mar 2024. >> >> And even if we understand why you now get the ":BOOT_TIME" part, >> there's still the question why it cannot be unlinked, if Cygwin >> supports file names with a colon.  Maybe it's because Emacs creates a >> symlink, and symlinks with such names are not supported by Cygwin? > > I'm still traveling for another week and won't have time to try to > reproduce and debug this until I return.  But I did do one quick test in > a Cygwin shell.  I created a symlink > >   .#FILE -> username@hostname.1234:-11644473599 > > and deleted it with rm.  So symlinks like this are indeed supported by > Cygwin. > > To be continued... I finally had a chance to look at this, and I can't reproduce the problem. The autosave file does not have the ":BOOT_TIME" part, and it gets deleted properly when the file is saved. I'm running the latest stable release of Cygwin (3.5.3) on Windows 11 (version 23H2, build 22631.3447). Ken