delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/13/12:52:44

X-Spam-Check-By: sourceware.org
Message-ID: <4697AD81.8090105@mff.cuni.cz>
Date: Fri, 13 Jul 2007 18:51:13 +0200
From: Pavel Kudrna <Pavel DOT Kudrna AT mff DOT cuni DOT cz>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: bug in cygwin_conv_to_posix_path() caused by period in win32 path
References: <468A1024 DOT 8000007 AT mff DOT cuni DOT cz> <468A441A DOT 2000009 AT cygwin DOT com> <468B657B DOT 3050306 AT mff DOT cuni DOT cz> <20070704213927 DOT GC16838 AT trixie DOT casa DOT cgf DOT cx> <468D70E6 DOT 4070403 AT mff DOT cuni DOT cz> <468D75C5 DOT 5050507 AT cygwin DOT com> <20070706001522 DOT GB22578 AT ednor DOT casa DOT cgf DOT cx> <46967A99 DOT 5040208 AT mff DOT cuni DOT cz> <20070713073725 DOT GJ6851 AT calimero DOT vinschen DOT de> <46976DEE DOT 2000004 AT mff DOT cuni DOT cz> <20070713141146 DOT GV6851 AT calimero DOT vinschen DOT de>
In-Reply-To: <20070713141146.GV6851@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen wrote:
> On Jul 13 14:19, Pavel Kudrna wrote:
>   
>> Novell client uses paths of type z:. as so called search drives. It is 
>> stupid because if works
>> only until you change current dir on that drive. It should use z:\ 
>> instead but we can't change it
>> and it works.
>> So the good is that it is possible to run novell netware utilities from 
>> cygwin bash etc.
>>     
> I don't understand this one.  The Novel client is not a Cygwin
> application, right?  How does it help a native Windows application if
> the path is converted to a Cygwin-specific POSIX path?  I don't get
> this.
>   
Ok, imagine a windows server with the share \\server\disk. You login to 
that server from your
workstation and some (login) script will map drive letter S: on the 
workstation to \\server\share
and also it can add e.g. s:\bin to the search path.
That is what Novell client is doing when you login but shares are on 
netware server. There is
a directory with utilities so letter Z: is mapped there. Therefore 
windows workstation logged
to Novell server usually has Z:. (unfortunately not Z:\ as I mentioned 
above) in search path
(nvclient will manage it during login & logout) and utilities are 
accessible by file name.

But in cygwin bash, because of noncorverted Z:. by 
cygwin_conv_to_posix_path(), there are
two items Z and . in $PATH and of course utilities are not found.

> Another point is this:  Converting C:. to C:. keeps the path correct,
>   
Correct? Function should convert to posix, but no conversion is 
performed without indication
of error.
> Converting C:. to /cygdrive/c/. creates a wrong path.
Why conversion of c: to /cygdrive/c is ok while c:. to /cygdrive/c/. is 
not? Is there some problem
with trailing period? If yes we can decide convert to /cygdrive/c only.
> Even if it
> helps your Novell client (no idea how that's possible, but still...)
>   
Not my only, it is common to all Novell Clients for Windows 2k, XP...
I hope I explained how it helps. Did I?
> then it still might break other applications.
>   
Yes, that is argument. I don't want to break any other applications but
are there any? And if there are some, should they rely on undocumented 
feature?
With path in bash it is just opposite, it is broken now. Novell client 
uses legal win32
path but its ruined on the way to cygwin bash.
Pavel Kudrna

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019