This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Be careful of network drives under /cygdrive


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]