Unable to execute Cygwin application within UDF format

Ken Brown kbrown@cornell.edu
Sat May 28 13:22:12 GMT 2022


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


More information about the Cygwin mailing list