This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [stefan.schuerger: Path problems with trailing dot]


On May 16 12:58, Corinna Vinschen wrote:
> Preliminary patch see below.

Correction:

> Index: path.cc
> ===================================================================
> RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
> retrieving revision 1.374
> diff -u -p -r1.374 path.cc
> --- path.cc	13 May 2005 21:05:46 -0000	1.374
> +++ path.cc	16 May 2005 10:52:56 -0000
> [...]
> +      if (RtlDosPathNameToNtPathName_U (wc_path, &upath, NULL, NULL))
> +	{
> +#ifdef DEBUGGING
> +	  char nt_path[CYG_MAX_PATH + 5];
> +	  sys_wcstombs (nt_path, upath.Buffer, CYG_MAX_PATH);

Make that

	  char nt_path[CYG_MAX_PATH + 7];
	  sys_wcstombs (nt_path, upath.Buffer, CYG_MAX_PATH + 7);

> +	  debug_printf ("DOS: <%s> NT: <%s>", path, nt_path);


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]