delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/06/05:28:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 6 Nov 2009 11:28:19 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Accessing GLOBALROOT paths - a potential compromise???
Message-ID: <20091106102819.GY26344@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <19183 DOT 53891 DOT 243601 DOT 62109 AT consult DOT pretender> <20091103154430 DOT GO7831 AT calimero DOT vinschen DOT de> <26222690 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <26222690.post@talk.nabble.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On Nov  5 13:41, aputerguy wrote:
> 
> Corinna Vinschen writes:
> 
> > In Cygwin 1.7 you can do this for any subdir in your volume shadow copy:
> >
> >  $ ls -l //?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1/subdir
> >
> > It just doesn't work for the root directory of a drive due to internal
> > path handling restrictions.  But there's a simple workaround.  Use your
> > own tool as below.
> > 
> > The only hack that I have found to get around this is to use an *old*,
> > *unsupported* Microsoft routine called 'dosdev' which allows you to
> > assign drive letters to devices, including using the GLOBALROOT
> > format.
> >
> >Try this:
> >
> > $ cat > DefDosDevice.c << EOF
> 
> Cool....
> Two follow-up questions:
> 1. Any idea how this differs from dosdev.exe? Is it faster/slower? More/less
> robust? More/less portable?

No idea.  It works, right?

> 2. Should this short routine be added somewhere in the cygwin distribution?
> It seems incredibly useful and simple.

It's especially incredible trivial.  There's also nothing
Cygwin-specific in it.  Just build it for yourself if you need it.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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