This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Accessing GLOBALROOT paths - a potential compromise???
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?
2. Should this short routine be added somewhere in the cygwin distribution?
It seems incredibly useful and simple.
--
View this message in context: http://old.nabble.com/Accessing-GLOBALROOT-paths---a-potential-compromise----tp26175496p26222690.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
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