X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <26222690.post@talk.nabble.com> Date: Thu, 5 Nov 2009 13:41:53 -0800 (PST) From: aputerguy To: cygwin AT cygwin DOT com Subject: Re: Accessing GLOBALROOT paths - a potential compromise??? In-Reply-To: <20091103154430.GO7831@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <19183 DOT 53891 DOT 243601 DOT 62109 AT consult DOT pretender> <20091103154430 DOT GO7831 AT calimero DOT vinschen DOT de> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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