This is the mail archive of the cygwin 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]

Re: Accessing GLOBALROOT paths - a potential compromise???


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


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