This is the mail archive of the cygwin-patches@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: [Patch] cygcheck: warn about empty path-components


On Oct  5 07:15, Bas van Gompel wrote:
> Hi,
> 
> This little patch makes cygcheck warn about empty path-components
> (leading/trailing/double ':'/';' in $PATH).
> 
> 
> ChangeLog-entry:
> 
> 2004-10-05  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
> 
> 	* cygcheck.cc (dump_sysinfo): Warn about empty path-components.

This looks ok, but it doesn't make much sense when started from a
Cygwin shell.  The reason is that empty paths are converted to "."
or ".\" respectively when converting between posix and win32 paths.

Chris, I might be missing something but that looks like a bug in
conv_path_list to me.  Why is conv_fn called with "." for empty
strings instead of ignoring the empty path?

Is an empty path component a windowzism I don't know about?


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]