From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#39371: Extend workaround for Cygwin O_PATH bug Date: Fri, 31 Jan 2020 11:14:47 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------AA1997590FCEA7A13728204D" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="65095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 To: 39371@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 31 17:15:25 2020 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 1ixYx3-000GfC-6E for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Jan 2020 17:15:25 +0100 Original-Received: from localhost ([::1]:55596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixYx2-00034L-3n for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Jan 2020 11:15:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37020) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixYwj-0002ya-0t for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixYwh-0003Qx-Gw for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:15:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60198) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixYwh-0003Qg-C0 for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ixYwh-0004vR-7Y for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:15:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jan 2020 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39371 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158048730218916 (code B ref -1); Fri, 31 Jan 2020 16:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jan 2020 16:15:02 +0000 Original-Received: from localhost ([127.0.0.1]:37938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixYwf-0004uo-Hw for submit@debbugs.gnu.org; Fri, 31 Jan 2020 11:15:01 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixYwa-0004ud-RL for submit@debbugs.gnu.org; Fri, 31 Jan 2020 11:15:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36943) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixYwZ-0002b4-Hl for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:14:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixYwV-00034x-Tq for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:14:55 -0500 Original-Received: from mail-mw2nam10on2111.outbound.protection.outlook.com ([40.107.94.111]:48640 helo=NAM10-MW2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixYwV-00032H-DR for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2020 11:14:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Atc4cDS/TOIzJ7+Uvte2pW5Jwrmk9urU3G7B12jZBSpTi4lIXIzBrYmja9UXzvLDFF5//rjBzWwoa847H0zya8Iz0SAt5RiIUBBuYBYHmREMO0+AXpqB621KBZlEl4pO2K45SEhZhAl6RZ7EXl5+Q0J8ZuvMUyaVeesKxnKhsRWHmQT431FyejXEs8qMEnwScJzbItwRtZEhoqm8lh/3o4gmuBmpaTBELV+TUFm5GVH/jiWtTHrgjpEC2MeEVEjsFYA9XzWZwoYsX4JC1wBQk+tA73YXZ+kQgEd5TXDqLhYEBPgLZZD5I6uTucVzidVwZNEligub99p083zYC7QGIg== 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-SenderADCheck; bh=4IHUOHprsR+sXS6oJgCxZRrqtlMoXXzr9cGKmfx9mEA=; b=RsrCNQdFTSq5wN3ZkChUJC8Mkw88emsHGLnTOxIIdzSBtK6wvSEzeZ9GwQfIcXhzQdAPq4JkULqLz5Iyf0guhWOpIBjwM0e4aS0Zd/eKq6Xb0aixCgQDpGmgMdl+vic+BJ/dEJO3EwRAcLwZqDYKosykL2P/qWtO1y0HiE9ilDhRdiHOoLy2Kaei+KkPpXLbn/eulycQlNdp7onj3kEbqTEV0o+D/u88TDSzHD2CXM/Tlla9d73qV2StB29e3jkfhU3raqn7w6Np/6ptvbjaaz4SiNfOUxLKCLy86PFflpT3s1Z6V7gIFLTFW5GKK8iW76i6leXuv83OZ30gQtYJOA== 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=4IHUOHprsR+sXS6oJgCxZRrqtlMoXXzr9cGKmfx9mEA=; b=MIkL5XP1nwXqlEDR5ihiH+a/l0RZFehYm7tSPA3YyF9vRCazWSD/uL7DFrVfmqlQ05OW+A1DLPCUst1LFuSIfUSIRA8/FgKcIJmi9TYMRk9m9lUfuGQe0S02/y2NMJQla1j05ihU+lL+0wMxTTTO2V7MfgwLKOkHOVqnXesdmxk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu; Original-Received: from DM6PR04MB5738.namprd04.prod.outlook.com (20.179.51.81) by DM6PR04MB7050.namprd04.prod.outlook.com (10.186.141.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.29; Fri, 31 Jan 2020 16:14:49 +0000 Original-Received: from DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::cc3:c238:852e:5831]) by DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::cc3:c238:852e:5831%7]) with mapi id 15.20.2686.028; Fri, 31 Jan 2020 16:14:49 +0000 Content-Language: en-US X-ClientProxiedBy: BN6PR1201CA0019.namprd12.prod.outlook.com (2603:10b6:405:4c::29) To DM6PR04MB5738.namprd04.prod.outlook.com (2603:10b6:5:16d::17) Original-Received: from [10.13.22.8] (65.112.130.194) by BN6PR1201CA0019.namprd12.prod.outlook.com (2603:10b6:405:4c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.27 via Frontend Transport; Fri, 31 Jan 2020 16:14:48 +0000 X-Originating-IP: [65.112.130.194] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3605b985-7997-4422-1f01-08d7a668b1f8 X-MS-TrafficTypeDiagnostic: DM6PR04MB7050: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 029976C540 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4636009)(396003)(346002)(136003)(376002)(39860400002)(366004)(189003)(199004)(786003)(6916009)(31686004)(52116002)(316002)(16576012)(75432002)(66556008)(66476007)(81156014)(33964004)(81166006)(235185007)(66946007)(2906002)(31696002)(36756003)(5660300002)(86362001)(8936002)(956004)(2616005)(16526019)(6486002)(186003)(26005)(478600001)(8676002)(66616009); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR04MB7050; H:DM6PR04MB5738.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ftE1YfTh00jSIwdroVUMa0ZC2cVVoF63SVBsUiLqk9RRRtUFnKz7GTi2GMAATmCM2Dsg7O7PAqaeOjdVx5AZsVlBTChsMt1vd/oW1dpVy2NJZePwlCSrE2wzNXNklgsq4rau9Dit6QFZO3pZW11sXNiwCwmSpKeLZUP8f3pgwuU5Yj64axLEDEn3HfQS5QklY039PAngpKE1wIcU/OJcCy4M+TP9QFDd9fn41DJrulu0ixu/68zES666vxDAC7lWQbBZffebJFnla9KPY9cDPlBnQt6IX1QxG5Q5qStjmq/b+iUnecEp1VySNCy4miDRzKke63aNo5Bc7mc0hv7mEY1X89TM21pCWrsl5WB4Zzgyfb0LFNj+wJsztrZeObg8+35r5NFovsK7bB6EtDPfqyvRFYpFZqM5/OwF+Z6C/5IthgUYPXVYAtfMHlTFR9V X-MS-Exchange-AntiSpam-MessageData: WT1vwY79bi3us7t1fdZ+P/l0V1b9Dl7HEvyzTmUT2g62NW6XaaP4sO0BXZgchKgdr9Od3H4YG915H5L1Km7Bnep6aJSkUToPDAHuj1wo2VSSb5YneuCCEK8e84GR6mVjauix18aj3Tg/9vxYbKJknw== X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 3605b985-7997-4422-1f01-08d7a668b1f8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2020 16:14:49.0331 (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: SxkbNmzdbRrOTvv/2XT+CGj5G1C4HbSG8kXvDPk1DS9rgTZ1/CVpP/mpu2tqMCgUKfzYcjrpaOmPvMBD/4zpHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB7050 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:175504 Archived-At: --------------AA1997590FCEA7A13728204D Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Commit 0b2841f9 introduced a workaround for a problem opening FIFOs with the O_PATH flag, in Cygwin versions 3.0.0 through 3.0.7. It turns out that there are problems opening sockets and symlinks with O_PATH in versions 3.1.0 through 3.1.2, so the workaround needs to be extended to these versions. The attached patch does this. The bug number still has to be filled in. In GNU Emacs 27.0.60 (build 2, x86_64-pc-cygwin, GTK+ Version 3.22.28) of 2020-01-30 Repository revision: de411615344d1551d685e45b0739e1f738cf4afd Repository branch: emacs-27 --------------AA1997590FCEA7A13728204D Content-Type: text/plain; charset=UTF-8; name="0001-Extend-workaround-for-Cygwin-O_PATH-bug.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Extend-workaround-for-Cygwin-O_PATH-bug.patch" >From a230864098711e94251b701888475385c77c016d Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Thu, 30 Jan 2020 21:58:33 -0500 Subject: [PATCH] Extend workaround for Cygwin O_PATH bug * configure.ac (HAVE_CYGWIN_O_PATH_BUG): Extend to Cygwin versions 3.1.0 through 3.1.2. (Bug#99999) --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 02ec57e6ab..3c47da6dcb 100644 --- a/configure.ac +++ b/configure.ac @@ -5751,9 +5751,9 @@ AC_DEFUN AC_MSG_WARN([[building Emacs on Cygwin 1.5 is not supported.]]) echo ;; - cygwin,3.0.[[0-7]]'('*) + cygwin,3.0.[[0-7]]'('* | cygwin,3.1.[[0-2]]'('*) AC_DEFINE([HAVE_CYGWIN_O_PATH_BUG], 1, - [Define to 1 if opening a FIFO with O_PATH causes a hang.]);; + [Define to 1 if opening a FIFO, socket, or symlink with O_PATH is buggy.]);; esac # Remove any trailing slashes in these variables. -- 2.21.0 --------------AA1997590FCEA7A13728204D--