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: Wed, 1 May 2024 17:20:20 -0400 Message-ID: <26ab8055-1da6-4b3e-a65c-68c598cb7660@cornell.edu> References: <861q75juvy.fsf@gnu.org> <86zftsgoxt.fsf@gnu.org> <86frv3r32m.fsf@gnu.org> <3a7eea72-d4ab-4fde-bdad-71b5e8f5bb7f@cornell.edu> <86le4uq0tj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: yamaoka@jpl.org, 70415@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 01 23:22:11 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 1s2HOz-0004RZ-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 May 2024 23:22:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2HOY-0004aa-Rp; Wed, 01 May 2024 17:21:42 -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 1s2HOX-0004aB-Dc for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 17:21:41 -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 1s2HOW-0007Df-NB for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 17:21:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2HOs-00010P-2s for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 17:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 May 2024 21:22:02 +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.17145984683835 (code B ref 70415); Wed, 01 May 2024 21:22:02 +0000 Original-Received: (at 70415) by debbugs.gnu.org; 1 May 2024 21:21:08 +0000 Original-Received: from localhost ([127.0.0.1]:39518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2HO0-0000zn-1R for submit@debbugs.gnu.org; Wed, 01 May 2024 17:21:08 -0400 Original-Received: from mail-dm6nam12on2103.outbound.protection.outlook.com ([40.107.243.103]:32000 helo=NAM12-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2HNl-0000zH-53 for 70415@debbugs.gnu.org; Wed, 01 May 2024 17:21:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D/D5gWqeXAJ28xQoZXVacEzUu+OuJrbHrgpUpzKNxlafE6q4VFlKwuWkvkqitNb0TokcVOVXIda5TlKzK36YaGym/Iz6H7PDib1MuZQqOFAhK+bqLexH0Pj4lTUHlYVucMLeTM6cG14Nqnt2saIp6FCgyIUuwOvf9WvBmJU9GgW9aqVtGgVUMaxViWPVr1ubHp20dTu+7X/1bEdQ7p9ScwXrm4+HvnPRoRoWz5YXUdURijR0dVcNx53izf4rUEieAbUK6+zB4+Gh1+J57B7mnJZ22rZTDzrK+u0wM+OHemnhXXvi1ET/FXTrcukp1MGcCOvxyLrUJPGiZf1d2tSPcg== 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=vcR/rlUZArorM4Kq+wn/rLtrZLNFN6z69pOXec2LBJ8=; b=GhxcJs1UkWLULmSDOGNgxoP5Lmu5EzkMto24kOhuiz6zGpg3i9N6F5qLn6w6esZ5HuBi5vdiEhe/k47NdZl5FrpDKQaUjggDQPQZ3os01ruCor/RNO6LS+dt2PGmmg8Dl1n4o0Exp/lA/VmcsiLMFCqFadxtQhUDAXuSOM1alHT5UlsohxhBBupPK316IxqIi0tNJyCENnYmCKSUFLoQtaVNp19+IaevK00yITX38A9jH41dZSgUSKvKXV8WHCeJDTlWV314p3jltf/u4aPK/m0vtPw2I1eY9cHmXpHZ478msc5VTEkIjcV5HRue8NOpl2Uoe9c/TcBcUAXCNU0M5w== 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=vcR/rlUZArorM4Kq+wn/rLtrZLNFN6z69pOXec2LBJ8=; b=aLuRX8QhZL3Y4rdwC7qeKx7koZmZ5XRlUwwU9lik61DqLR+cIk3lhUeTKwUiQiLzyRPSKybiI752NY/lHwdQWmWQATR9/YleLqUuarxcCdjRhTgbk2qk/Pq+80MKq3HkZ8coKIVKbaaiLwORPxHtWojSfUbHVFxmqzwYKpz6XqE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Original-Received: from BL0PR04MB5140.namprd04.prod.outlook.com (2603:10b6:208:56::10) by SJ0PR04MB7871.namprd04.prod.outlook.com (2603:10b6:a03:3bd::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.25; Wed, 1 May 2024 21:20:24 +0000 Original-Received: from BL0PR04MB5140.namprd04.prod.outlook.com ([fe80::6764:d4ce:ab3b:9bdc]) by BL0PR04MB5140.namprd04.prod.outlook.com ([fe80::6764:d4ce:ab3b:9bdc%6]) with mapi id 15.20.7519.031; Wed, 1 May 2024 21:20:24 +0000 Content-Language: en-US In-Reply-To: <86le4uq0tj.fsf@gnu.org> X-ClientProxiedBy: MN2PR16CA0059.namprd16.prod.outlook.com (2603:10b6:208:234::28) To BL0PR04MB5140.namprd04.prod.outlook.com (2603:10b6:208:56::10) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL0PR04MB5140:EE_|SJ0PR04MB7871:EE_ X-MS-Office365-Filtering-Correlation-Id: f2f964cd-d010-4a35-dd6f-08dc6a2483fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info: AyJt9Qr33yLzA/leeFbxUqcxby1PrqpOE9B4NhKPWYfG+VN4/1EgyWwkXbQRsq0K7w+2/aNnNDN1QoNhbOvJMFrhONRsiSlwCy7JwGvPHs5ornL6f76TcLQkK9W+5p+cV3Wy5YHxe18Dv2/afmhkszL7weabXOZ38gum8vzFHvZWro5PT/CnWdZ8BZpzBeMKo4G/hocBA6BnBD/M7767EnzEpPbZEEuMiog7zsheDLbmWh3IN2awSC8CKR4Pvt2na4vuzK8NKl7W6kHEeVdYlTfOU3oySpOP1WJiaUmalbZIHoedAz3RSHdTIvjReR3Hc49LvQWgQorZaLlZGJtiWcmeVzn46Mj0pQ6Q+u6SbKrmYeeiUqJql0D+pomwH01BPfoWToPAzjMJi/VZDOl6eqZoxuyL0wADCsL1IZ2TOno+EcbPJJuZWviMn1Jy4XSvP3QCdCh5LYQmDhfC0ElDQ0Vc/YIIFw05P+ap8LF0G1ZQ8v2VQHT/rQwlvf1EBcwFSNNcW5MfC7Y+XKux4TGNLDOiKsfJh7itlgnPjmXiB7W+/A98X8SRBnzjIq29YoYMlT8SLE1TEeEtPfeA9b7RXvXMFZmNss83dx7dNUvO6BPR2kin6qQnDLfeAUOLtY0wV3n3RqigUysuQJ2NM4/e53qRtYkB2AX92fYV46QtYyXbziGS6GcQG5bPahTobnX+/OHAsGT6oC7kGU8stZ0jtI/ZJuo2hmFEB5LjoaxYjEguqvNRIfgDk1sn5oHGo K3X5yvdk/+cXCzW2vxTFdaSqe+lTWEEsf2MyrZOScav87vX2Sv6gBN+dbldgDmppKEEwp8R/z2D3/tQsljS2TGfMwo4e3bphZi X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR04MB5140.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(376005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: luBU912ApAet313hIZgLYknNTrYieIz3fChHQ8bZGLQT4fWA43+ip2g2N9RPou0hUFaJ8+W1c1AHuB/o8+18HRB1t6iXvqe1ueGPbgavlC0BJ0j4rj4EC0ikg+CEcg2NV1yo9ueb6F62CuylPvsIWkw4JXHZi49jAgVbF9lHJ/D7Am/3+S/PWWIJLDOIitQAkJSu83MKb10ElAwcu6yO1MQRxl3pLU8lCQib3k4rx12XuWCf5GSIsf4Nb19ogdJTiK70/NkrUvLcTe3lWOPm//xUT3tm8bD/S285VGP47UHlPPSKhXHIjhZolM7BXn74qIYpyTqirDnzua+vjlMblyhXRiSOCjen+8CgESxTzgqOqYZe3FGoUWIAhvmx2aYZ5HBypQSJXB/A26ai+DyOOqg0y16Lj85Tp8dh47pd/UHLKRGpHel6MJcQRySvpflfCgTwMYH3Tf1QdukG1b6inVTT2SmINcx8+Uni+U7clrKJBL02nXvPmuVsdm14vl1qTSPuYQh34a+DV0elz7jv88WFpgBI2dJkjn7WA8sfm5cd4/gV6PWohDQ1Xix97IaJ9617c3SwEP5XWP9f1E0dmtBXdrKrrpQ5IWqsiXFkMlcT3c2NMP1X6kE3S8NkgoRntrzPrLjz80/sI47R/CJYtyetf5sRqDalkRwxSBu4t6uUQzARtqy6nRrj2dTzRXZ6XpV6g9dHEJmNVI3ybUKOrVIUP0uX6Z55emas/xSLXOwQxmo568Af/CbCvq jMn/MBhQFXCzTIGQGtnLTskBvyV32P0lx77Wy5aVr+SreyTdNTAjzeoFiT/FNuAoT6IcCrC7Az/78aiZdttaQWjWlDuOmIt+ih X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: f2f964cd-d010-4a35-dd6f-08dc6a2483fe X-MS-Exchange-CrossTenant-AuthSource: BL0PR04MB5140.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 21:20:24.6608 (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: o5QJ1nPAkq2RfZ/npu+agHqx25gXMRpmTJUYlciQZeOgfhnrxWRGu1YDn0wJz4MDh8TgKzwNN25LPj4ULigDVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR04MB7871 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:284262 Archived-At: On 4/30/2024 12:20 PM, Eli Zaretskii wrote: >> Date: Tue, 30 Apr 2024 11:23:21 -0400 >> Cc: yamaoka@jpl.org, 70415@debbugs.gnu.org >> From: Ken Brown >> >> On 4/29/2024 10:34 PM, Eli Zaretskii wrote: >>>> Date: Mon, 29 Apr 2024 19:05:35 -0400 >>>> From: Ken Brown >>>> Cc: 70415@debbugs.gnu.org >>>> >>>> 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). >>> >>> This is not about autosave files, this is about lock files. Those are >>> created once you modify a file-visiting buffer. >> >> Sorry, I didn't write what I meant. I meant to refer to the lock file. > > OK. So it sounds like on some Cygwin systems this call in filelock.c: > > static int > lock_file_1 (Lisp_Object lfname, bool force) > { > intmax_t boot = get_boot_sec (); > > yields a non-zero (and negative!) value of 'boot', and on other Cygwin > systems it yields zero. Because that's how Emacs decides whether to > append that ":-NNNN" part: > > char const *lock_info_fmt = (boot > ? "%s@%s.%"PRIdMAX":%"PRIdMAX > : "%s@%s.%"PRIdMAX); > int len = snprintf (lock_info_str, sizeof lock_info_str, > lock_info_fmt, user_name, host_name, pid, boot); > > get_boot_sec calls get_boot_time, which is a Gnulib function (see > lib/boot-time.c). So I guess the key to unlock this puzzle is > somewhere there. I took a quick look at get_boot_time and found a bug, which may explain why some Cygwin systems behave differently from others. I've reported it here: https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00008.html Ken