delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/28/09:22:58

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 585543858CDA
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=cornell.edu
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cornell.edu
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=j/BquQFTUgz1y4A5vNXs8Va4hWZcywaEevsPZWZ5jpRIU84HJXwb9gRLiqdvO6buFrOYgNG1p0dbzA4fv+mJEs6Ddwzjsl5DzYOcE9QBmO9tNC6Hjbdy9jvvPafLhMy4zWAF9G/6DUA9iMNejt8p3DGSeVRKBqCcln1JOZHsMG9h/qY/2X7jMSwLkwipPnsZHHZMo8wzjjgmPSdQ2PYxyF6/EI9Mk2WJmbPfoeMAOAV00cRHQBls3zwoQd0tcAhudpDu0a7r/CVjhVyQ/NprED/d9Y514UONJ7mM3f3yFrxRlaAS3xSJ/liK7HlcDkFwjy4Z26yhzNq9bG6hOHg+eg==
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=WFJHSyBMMI4mk6bE1E+ShHLs0Pq5tnWmjF/CacS8BNE=;
b=d48VVnSduIgU+lH1AmI6muivUgKj1/YzMDnCBIeq3ag4qvckaRJsS1WghgDAeBTGo/pV+GZnAqCLzCS7Iyz1ME+YAQeZQ2mnWBltXTFIrEwEbJzDGs3/xGbf4t+9mmu1TbAy18eN0zjpgs7LfimXEv7D/BYs9EcqhlfUdbtezstQEikRIErbnle1BvywwFqrbI8/7SsXlGcIHA9J8l037gTOvoXkYDH877FfZ2ZlO2vjhzHyMm/FFxFQZ7hUUvJIeJdB4HESxWi8+Pva0Nncn7MLTVSZhHSQXhHeNpT+G5a2gHIYhgXhVDjJPR5U69Lnp0hbgwRuAV6UW2aJTiERuw==
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=WFJHSyBMMI4mk6bE1E+ShHLs0Pq5tnWmjF/CacS8BNE=;
b=frMyNG85ESI5l4h1RQAFx+bDKxgUdZrT4HSU3ew619dr3Y/7QpObEoCjmv9G3zzGOT8OYL5F1hKfgHXEN7nHXjNFwx42zQ33dD/r/bER14Bse0snS+nxj6etZMVsrToOS2VM9yv+upvXPGlVRenZGisanUC96z3qPeEv0ntrpq0=
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=cornell.edu;
Message-ID: <04783b49-9bd0-da03-805b-d30e6363b7b6@cornell.edu>
Date: Sat, 28 May 2022 09:22:12 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: Unable to execute Cygwin application within UDF format
To: cygwin AT cygwin DOT com
References: <CANe7G9EE5Q9kd7FM=+ERhhB2zBxyNo1Tx7Rbuy=X4svaG2m0fw AT mail DOT gmail DOT com>
<20220527133120 DOT 58530edd99f4a87c605b8a04 AT nifty DOT ne DOT jp>
<CANe7G9EZbuKOJt_X2mq1X70Y=tWFiy5_w9fnKp59EgCGQjAUAw AT mail DOT gmail DOT com>
<20220527181849 DOT 6baaa5d9e8446f3e7d23cbee AT nifty DOT ne DOT jp>
<20220527195123 DOT abd2d66a17e28b51f1a745a3 AT nifty DOT ne DOT jp>
<20220527212813 DOT 9bdc5d02d5da3172103bbbce AT nifty DOT ne DOT jp>
<20220527213629 DOT 64893e46789e0e6f7244b0fd AT nifty DOT ne DOT jp>
From: Ken Brown <kbrown AT cornell DOT edu>
In-Reply-To: <20220527213629.64893e46789e0e6f7244b0fd@nifty.ne.jp>
X-ClientProxiedBy: BL0PR05CA0016.namprd05.prod.outlook.com
(2603:10b6:208:91::26) To SN6PR04MB4399.namprd04.prod.outlook.com
(2603:10b6:805:30::12)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: a78b6372-cbd2-414e-1be7-08da40ad13eb
X-MS-TrafficTypeDiagnostic: DM6PR04MB4618:EE_
X-Microsoft-Antispam-PRVS: <DM6PR04MB4618D77F0A18442B8F1AB192D8DB9 AT DM6PR04MB4618 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: CHf+LWR3bdNHBg7dVImM6jP7unWotC+6/SRmxmZ5VzhcaTc0L/ZQ0AI1D7EX/lpAwnSeCrudvd3pHujsjz/gXxD2MD38BLsluBkIShDm8N4Lxt8kG77WBirxNJZONxJO3yek9KG+B98Pnm/eEU/O349OgIc7I4c+mpjxqcGJXGB2TfxCES6Xms+hebQYacj8OFAaBKKUA1wsWQ/hEnMxbk3RSjx9L1mm7109pO6VUzP8EEpc1Ih4iYe2hsAIQmCI4ioZ7NhhXQi3FAvwAceCJTaWnv0XmRtAFASCBl9hlLMdNrrCarrfwQ4y3Qp4nmB0zyr5XIn5iswCfbF4tPm6E+cp5f7fo3TRo/AxN8YgWwXMLzb5hvpWXGnpR4+sOcY+NVD9KM7X01s39Q/hIvi6GA6t57K0VXAk0H03Wid39RrdpfT/n+UweyzD+90282vARI0mtu2NiYneftWhKTbc9vWyItyrAcXSEChCvLT37WWngfvo0YkExxI5GLU4scBWPHvhjzyll7BrdjfsriKDSa3hSylAVDC29V19ln47mJK8bA+IStDbP7EqKK729gGmNBpljZ09Yhe/7J18QePjfixmI9K0BfHTtKoXIn+n/LnxEHWr29CZWXMqLm+JdaFhapKFBgOulkTCnL0A1vnM7lYMWt91eGt21O8sGLCsEoPrHcoXmyaMEpupwIgXXbcfOjgXxKEMWGj90XxbSyMR51HQklzcP41q/1LSfXhXhSg=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:SN6PR04MB4399.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230001)(4636009)(366004)(6512007)(66476007)(31686004)(38100700002)(36756003)(66556008)(66946007)(8676002)(786003)(316002)(6916009)(2616005)(31696002)(6506007)(2906002)(53546011)(4744005)(508600001)(86362001)(6486002)(186003)(8936002)(5660300002)(75432002)(43740500002)(45980500001);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NnF1dWZxVXlFNTNpVk1ROTJ2b0JLTlRRcFVkOWl6MjQ0eGlXYUJSRUVsYnBP?=
=?utf-8?B?WUVzdXpacVF1U1N5RUxEemQwMFRMR2JaWUVRVWNMMW9PL0loYUtBenQ2cnMw?=
=?utf-8?B?WUhlbmRrNWhaaWRsSE8xNk4xQ1BMWTl0NGNUWDhISWNrcmpsVTNNNEVSNkZG?=
=?utf-8?B?QXArNWVWR3hWaE5pTmhJTHUxUUErT2V3c2JBMjdXQUlBTktXZG4rQWNFcUlO?=
=?utf-8?B?MWpTOVNjNnVIZXFJZm1EcUVha2dBZzFaUjkxSTdBc3hBbm12blVNLzVFSG9u?=
=?utf-8?B?WU84WE83SXhTQVQ5Y09UbTRRWXJUeEw5RHJmUWdJc0V5bFlqbGJCVUQ3cGF2?=
=?utf-8?B?dEZKeHJDQWgxaVZGbmZoL2QzM0djRlFSQnQ2MHhRa1ZUYllZ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8?B?NnVacjVWS0NvOTNEQjRQdWIvVkR0d1BTM1JOVFFuMEthZ2NGcU5BNGx3WGVa?=
=?utf-8?B?eWVOMU1kK0RWUDRYa2pUcVI2YklxaXY5WWk3WkZmcXZERVpaZmw5QTBuN2xE?=
=?utf-8?B?Wmh0eFpLS0l5KzR3ZnF1WjNrU0pMUjZmSmxhV1BOdDk1UDRhMlJJcUd2MTVl?=
=?utf-8?Q?twp6TAwkyjl++dN++R4SQ0FA9sIHjLUUhmN+rsJozpTIl?=
X-MS-Exchange-AntiSpam-MessageData-1: Bg7pxBnrg+8SLw==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: a78b6372-cbd2-414e-1be7-08da40ad13eb
X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4399.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2022 13:22:13.6228 (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: DPhp2vqzjCAth9Lhr44YzusFXOs0CFdiquWFXQ8Uu85oFPlSz2/Kdnei807O2oe2HhuCR3tu4ZbDui7s7Qnt9g==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB4618
X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL,
NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 5/27/2022 8:36 AM, Takashi Yano wrote:
> diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
> index 01b49468e..34c9e2bc7 100644
> --- a/winsup/cygwin/cygheap.cc
> +++ b/winsup/cygwin/cygheap.cc
> @@ -183,6 +183,11 @@ init_cygheap::init_installation_root ()
>   	  if (p)
>   	    p = wcschr (p + 1, L'\\');  /* Skip share name */
>   	}
> +      else
> +	{
> +	  len = 4;
> +	  p = installation_root_buf + 4;
> +	}
>       }
>     installation_root_buf[1] = L'?';
>     RtlInitEmptyUnicodeString (&installation_key, installation_key_buf,

This looks right to me.  I would just suggest an explanatory comment, something 
like this:

+      else  /* Long path prefix followed by drive letter path */

Ken

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019