This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [Patch] cygcheck: warn about empty path-components
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 5 Oct 2004 10:16:29 +0200
- Subject: Re: [Patch] cygcheck: warn about empty path-components
- References: <n2m-g.cjth8v.3vsj9uv.1@buzzy-box.bavag>
- Reply-to: cygwin-patches at cygwin dot com
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.