From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113912 invoked by alias); 21 Dec 2019 21:18:07 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 113809 invoked by uid 89); 21 Dec 2019 21:18:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*r:207, suggests, guessed X-HELO: NAM02-BL2-obe.outbound.protection.outlook.com Received: from mail-eopbgr750125.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) (40.107.75.125) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Dec 2019 21:18:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0ceMEsNw/vm1Wkd+FZwtzusSkBzJOETtt867nUi3Q+Q4YbxtgSOaGDzL0k5g1s6yMQ0/gPSI4W+CdFWAheZwwWieVMzVsmJx5L9X4us4niFcuSs4ll0njtJIv2vOKD7jAJ4ZVYhzgtduI2DvQSbX3O0WLICiGNR1Z8kkB8p+tO0v26EBrO6hJWvuBBVc7YTga2JMoRgqKYfTJG+f8SAef3H5n7brCI0i1VOmT+AcuZ0k7zgrIQ/jgDfbxoPBNUxdldDqX6XYcF50Tx4fFdqRCfVnmDOvWixi7v2I2fT7JqJsSj2pawBNbjQKkITeRMsQMtiGYACyLuHPTzqjdo2Xg== 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=ashT5jjEC8FYq6Tz9H/PUqH9Nc88X8+Og+vqC770EKw=; b=T6zhzqsy7AHm5moq80GtT+m6YsoXvh6hjKoSSodQujT1qLzOby80+LRaXpE7o2eEUNlE1DBEN3lzIIAt1yAWykyYWM5OODMqulVEr6G5coEuw7V6Zs5Rxf5ikTOSkgXaqqoPHa/SUXn7KBRu4tfAaT6oS20HdqzhhI9xtBXlq4dABYPvNQa1/+4BE+/h23ntcPqJhsLNlZGTh1J0/TuWl2HwqvMza/JDP+1/2Zk0rMNKR2kdwNsT0dp+CihxjAKOH7bSdo4DA4Yk6wBbqIKV3bzH/TEb4LyYuFJXEnEaYOnnfpUhzfMljq98NlfUyX62Lz+NF9KmHAblORSiEj57Bw== 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=ashT5jjEC8FYq6Tz9H/PUqH9Nc88X8+Og+vqC770EKw=; b=XW6FIUXdlEVLZGOXU6Eph6NqknaD0ZhEIPIFp4oxx7AhnH+92TNB8dWngXvHrpblSdECQ5xHLCxiDwsfgTqg/0ylAQcOxDab4+9Xz7IQUoFlPB0yvKrtv5UPf2W0oZMehHR01BXIbV31+AUaceHC26tAuaXsZZ38MpFUUXHmdcA= Received: from DM6PR04MB5738.namprd04.prod.outlook.com (20.179.51.81) by DM6PR04MB6876.namprd04.prod.outlook.com (10.141.107.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.19; Sat, 21 Dec 2019 21:18:02 +0000 Received: from DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::f894:edec:b80c:d524]) by DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::f894:edec:b80c:d524%3]) with mapi id 15.20.2559.017; Sat, 21 Dec 2019 21:18:02 +0000 Received: from [IPv6:2604:6000:b407:7f00:9072:82e5:a2c0:8e76] (2604:6000:b407:7f00:9072:82e5:a2c0:8e76) by BL0PR0102CA0013.prod.exchangelabs.com (2603:10b6:207:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Sat, 21 Dec 2019 21:18:02 +0000 From: Ken Brown To: "cygwin-developers@cygwin.com" Subject: Re: MC no longer working with cygwin 3.1.x Date: Sat, 21 Dec 2019 21:18:00 -0000 Message-ID: <11931d17-efe4-5b1b-b95a-9651c0844e08@cornell.edu> References: <97c8a719-73b9-e0ec-9651-97c2c684a086@gmail.com> <20191218193205.GP10310@calimero.vinschen.de> <1f5d0151-51c4-bd89-4fa9-137b88a543c8@cornell.edu> <20191219092409.GS10310@calimero.vinschen.de> <233fcd05-ec59-2f76-feba-b655e14f6098@cornell.edu> <20191221192602.GE3628@calimero.vinschen.de> In-Reply-To: <20191221192602.GE3628@calimero.vinschen.de> user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu; x-ms-oob-tlc-oobclassifiers: OLM:6790; received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-ID: <571980A851677649BF43763916CF588C@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 515SGS+4t9Y4OHx1Kak8+cgcQbqHUFcp2DvRn/BemUJXh61jbWalHvRPDAAa7x2LSf6/NhlZJYmwWuwOQtArOw== X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00002.txt.bz2 On 12/21/2019 2:26 PM, Corinna Vinschen wrote: > Hi Ken, >=20 > On Dec 21 15:48, Ken Brown wrote: >> [Moving from cygwin to cygwin-developers.] >> >> Hi Corinna, >> >> On 12/19/2019 4:24 AM, Corinna Vinschen wrote: >>> Ken, btw., we should add a PIPE_REJECT_REMOTE_CLIENTS flag, just for >>> paranoia. >> >> Should this be FILE_PIPE_REJECT_REMOTE_CLIENTS? It seems that most of t= he flags >> for NtCreateNamedPipeFile start with "FILE_". >=20 > Right, it's FILE_PIPE_REJECT_REMOTE_CLIENTS, sorry about that. >=20 >> And which argument of NtCreateNamedPipeFile should that flag be in? Non= e of >> them seem quite right to me. Or is there some other function that shoul= d be >> called after NtCreateNamedPipeFile to set that flag? >=20 > AFAICS it's a flag added to the message type, i.e. >=20 > FILE_PIPE_MESSAGE_TYPE | FILE_PIPE_REJECT_REMOTE_CLIENTS OK, I'll give that a try. I wouldn't have guessed that from the documentat= ion,=20 which suggests that the pipe type argument is BOOLEAN and is supposed to be= =20 FILE_PIPE_MESSAGE_TYPE =3D=3D 1 or FILE_PIPE_BYTE_STREAM_MODE =3D=3D 0. On= the other=20 hand, the defines in /usr/include/w32api/ddk/ntifs.h show that FILE_PIPE_TYPE_VALID_MASK =3D=3D FILE_PIPE_MESSAGE_TYPE |=20 FILE_PIPE_REJECT_REMOTE_CLIENTS, which is consistent with what you said. >> Last question: The only documentation I found for NtCreateNamedPipeFile = is here: >>=20=20=20 >> http://undocumented.ntinternals.net/index.html?page=3DUserMode%2FUndocum= ented%20Functions%2FNT%20Objects%2FFile%2FNtCreateFile.html >> >> Is there anything better? >=20 > Not that I'm aware of. There's only this and the Reactos source. Thanks, I didn't know about Reactos. Ken