[Patch] cygcheck: warn about empty path-components

Corinna Vinschen vinschen@redhat.com
Tue Oct 5 08:15:00 GMT 2004


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.



More information about the Cygwin-patches mailing list