delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/24/08:27:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-Id: <6.2.0.13.2.20051024071921.04de1aa8@pobox.com>
Date: Mon, 24 Oct 2005 07:27:39 -0500
To: cygwin AT cygwin DOT com
From: Kevin Autrey <Kevin DOT Autrey AT pobox DOT com>
Subject: Re: Problem: find not traversing /cygdrive/X properly?
In-Reply-To: <435CA30E.4080703@equate.dyndns.org>
References: <101720051458 DOT 12470 DOT 4353BC2B00022151000030B622007507440A050E040D0C079D0A AT comcast DOT net> <6 DOT 2 DOT 0 DOT 13 DOT 2 DOT 20051017100514 DOT 04d9fe28 AT pobox DOT com> <6 DOT 2 DOT 0 DOT 13 DOT 2 DOT 20051023140659 DOT 04da8f70 AT pobox DOT com> <435CA30E DOT 4080703 AT equate DOT dyndns DOT org>
Mime-Version: 1.0

Hi Chris -

I always put "." in the front of my path so that as I'm developing an app, 
I always pick up the devel version in my current working directory instead 
of /usr/local/bin.  I know it's not the most secure thing in the world, but 
I'm on a stand-alone, single-user system, so the security risks are manageable.

Just to try something, I modified my path to only include "/usr/bin" - no 
difference:

>tka-16:/cygdrive/p> set path = "/usr/bin"
>tka-16:/cygdrive/p> which find
>/usr/bin/find
>tka-16:/cygdrive/p> find /cygdrive/c -iname win.ini
>find: .: No such file or directory
>find: /cygdrive/c/.backupSettings: No such file or directory
>find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
>find: /cygdrive/c/boot.ini: No such file or directory
>find: /cygdrive/c/CONFIG.SYS: No such file or directory
>find: /cygdrive/c/Documents and Settings: No such file or directory
>find: /cygdrive/c/IO.SYS: No such file or directory
>find: /cygdrive/c/Log.txt: No such file or directory
>find: /cygdrive/c/MSDOS.SYS: No such file or directory
>find: /cygdrive/c/NTDETECT.COM: No such file or directory
>find: /cygdrive/c/ntldr: No such file or directory
>find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
>find: /cygdrive/c/Program Files: No such file or directory
>find: /cygdrive/c/RECYCLER: No such file or directory
>find: /cygdrive/c/System Volume Information: No such file or directory
>find: /cygdrive/c/Temp: No such file or directory
>find: /cygdrive/c/tomsteady.ini: No such file or directory
>find: /cygdrive/c/WINDOWS: No such file or directory
>find: /cygdrive/c/xPos.txt: No such file or directory


Per Eric's suggestion from last week, I did change my mount types to -b:

>tka-16:/cygdrive/p> mount -m
>mount -f -s -b "D:/CygWIN/bin" "/usr/bin"
>mount -f -s -b "D:/CygWIN/lib" "/usr/lib"
>mount -f -s -b "D:/CygWIN" "/"
>mount -s -b --change-cygdrive-prefix "/cygdrive"

Very strange...

Kevin




At 04:02 10/24/2005  (Monday), Chris Taylor wrote:
>Kevin Autrey wrote:
>>I tried the lastest snapshot cygwin.dll - no changes - find still failed.
>>So, I bit the bullet and re-installed my Cygwin installation.  Same 
>>problem:  I can't do a 'find' from a top-level /cygdrive/X directory (and 
>>it seems to affect ONLY 'find' when searching from the top-level 
>>/cygdrive/X mount point).
>>When I do a 'find' command (in bash or tcsh):
>>
>>>tka-16:/cygdrive/p> find /cygdrive/c -iname cdplayer.ini
>>>find: .: No such file or directory
>>>find: /cygdrive/c/.backupSettings: No such file or directory
>>>find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory
>>>find: /cygdrive/c/boot.ini: No such file or directory
>>>find: /cygdrive/c/CONFIG.SYS: No such file or directory
>>>find: /cygdrive/c/Documents and Settings: No such file or directory
>>>find: /cygdrive/c/IO.SYS: No such file or directory
>>>find: /cygdrive/c/Log.txt: No such file or directory
>>>find: /cygdrive/c/MSDOS.SYS: No such file or directory
>>>find: /cygdrive/c/NTDETECT.COM: No such file or directory
>>>find: /cygdrive/c/ntldr: No such file or directory
>>>find: /cygdrive/c/PRIOR_SYSTEM: No such file or directory
>>>find: /cygdrive/c/Program Files: No such file or directory
>>>find: /cygdrive/c/RECYCLER: No such file or directory
>>>find: /cygdrive/c/System Volume Information: No such file or directory
>>>find: /cygdrive/c/Temp: No such file or directory
>>>find: /cygdrive/c/tomsteady.ini: No such file or directory
>>>find: /cygdrive/c/WINDOWS: No such file or directory
>>>find: /cygdrive/c/xPos.txt: No such file or directory
>>
>>If I search a specific directory from the /cygdrive/X directory, it works:
>>
>>>tka-16:/cygdrive/p> find /cygdrive/c/windows -iname cdplayer.ini
>>>/cygdrive/c/windows/CDPLAYER.INI
>>
>>
>>If I do 'find' on the "C:/" directory it works:
>>
>>>tka-16:/cygdrive/p> find C:/ -iname cdplayer.ini
>>>C:/WINDOWS/CDPLAYER.INI
>>
>>What's interesting is that if I do a 'find' on "/cygdrive/c/.", it also 
>>works!
>>
>>>tka-16:/cygdrive/p> find /cygdrive/c/. -iname cdplayer.ini
>>>/cygdrive/c/./WINDOWS/CDPLAYER.INI
>>
>>
>>Does this clarify the problem or give more clues as to what might be 
>>going on? Is anyone else having this problem?
>>Kevin
>
>Well, I've just tested this myself, and the only error I get is the normal 
>permission denied on system volume information.
>I should mention that I updated my cygwin installation on Thursday or 
>Friday last week..
>
>There are two things I'm wondering though...
>Where is this . in your PATH coming from? (it's in your cygcheck output)
>Also, have you tried making the /cygdrive/X mounts binmode?
>Mine show up in mount like:
>c: on /cygdrive/c type system (binmode,noumount)
>
>Might be worth testing it that way?
>
>Chris
>
>--
>
>Spinning complacently in the darkness, covered and blinded by a blanket
>of little lives, false security has lulled the madness of this world
>into a slumber. Wake up! An eye is upon you, staring straight down and
>keenly through, seeing all that you are and everything that you will
>never be. Yes, an eye is upon you, an eye ready to blink. So face
>forward, with arms wide open and mind reeling. Your future has
>arrived... Are you ready to go?



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