delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/07/18:33:12

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
Subject: Re: Mount command warning with latest cygwin1.dll snapshot
Date: Tue, 07 Nov 2006 17:32:28 -0600
Lines: 63
Message-ID: <eir52c$lm$1@sea.gmane.org>
References: <eiqnin$e72$1 AT sea DOT gmane DOT org> <BAY125-F185A737B001E591FAA542CB5F20 AT phx DOT gbl>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
In-Reply-To: <BAY125-F185A737B001E591FAA542CB5F20@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Karl M wrote:
> Matthew Woehlke wrote:
>> Karl M wrote:
>>> I just tried out the latest snapshot and my bat file to clean up my 
>>> mounts now gives warning messages. The current released version of 
>>> cygwin1.dll does not produce the warnings.
>>>
>>> Z:\>C:\Cygwin\bin\mount -f -s -b C:/Cygwin /
>>> cygwin warning:
>>>  MS-DOS style path detected: Z:\
>>>  Preferred POSIX equivalent is: /z
>>>  CYGWIN environment variable option "nodosfilewarning" turns off this 
>>> warning.
>>>  Consult the user's guide for more details about POSIX paths:
>>>    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>>
>> This looks like something is going wrong when running Cygwin programs 
>> ('mount', at least) from a DOS prompt. Does this produce any output?
>>
>> Z:\> C:\Cygwin\bin\env | C:\Cygwin\bin\grep Z:
> 
> Yes. It shows my HOMEDRIVE environment variable.

Huh, Cygwin shouldn't care about that AFAIK. I might be wrong, but your 
later test does seem to point at $PWD/getcwd() as the culprit.

>> What happens if you run the file from a different directory? Does the 
>> warning always reflect the current directory?
>
> Try a smaller and simple test. Type "mount -m" and look at the output.
> 
> $ mount -m
> mount -f -s -b "C:/Cygwin/bin" "/usr/bin"
> mount -f -s -b "C:/Cygwin/lib" "/usr/lib"
> mount -f -s -b "C:/Cygwin" "/"
> mount -s -t --change-cygdrive-prefix "/"
> 
> The above is my output from "mount -m".  Now type the mount command for 
> the Cygwin root, in my case
> 
> $ mount -f -s -b "C:/Cygwin" "/"
> cygwin warning:
>  MS-DOS style path detected: C:\Cygwin
>  Preferred POSIX equivalent is: /
>  CYGWIN environment variable option "nodosfilewarning" turns off this 
> warning.
>  Consult the user's guide for more details about POSIX paths:
>    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

Huh. This was from a bash shell this time? It looks like 'mount' with 
some set of those particular options is tripping this erroneously.

WCTS I have no idea why that would be. I am hoping someone more familiar 
with 'mount' (Corinna, maybe?) will jump in here with some ideas (or you 
could CTS yourself?).

> Reverting to the released cygwin1.dll eliminates the warning.

Probably because the current cygwin1.dll does not have this warning?

-- 
Matthew
"Try to bring it back in one piece this time." -- Q (MI6)


--
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