delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/21/23:16:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 22 Oct 2003 13:16:19 +1000 (EST)
From: luke DOT kendall AT cisra DOT canon DOT com DOT au
Subject: Be careful of network drives under /cygdrive
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-Id: <20031022031619.744EA34C48@nevin.research.canon.com.au>

This may seem obvious to everyone, but when doing recursive file
operations starting at /, you need to remember that /cygdrive will lead
you to performing the file operation across whatever network drives you
have mapped.  (Just as you would under any Unix system when you mounted
drives.)

find / -xdev is a good option to remember.

In fact it's a good reason not to use the -R option on chown etc., and
instead to do find / -xdev -print0 | xargs -0 chmod ...

(AFAIK, you can't stop chmod, chown, etc., running across the network if
you use -R and start at /.)

luke


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