delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Fri, 23 Feb 2001 09:34:10 +0100 |
From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
To: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: [ANNOUNCEMENT]: Important change to symbolic link functionali ty |
Message-ID: | <20010223093410.G908@cygbert.vinschen.de> |
Mail-Followup-To: | cygwin <cygwin AT cygwin DOT com> |
References: | <20010222184404 DOT S908 AT cygbert DOT vinschen DOT de> <000501c09d6d$932ab6a0$21c9ca95 AT mow DOT siemens DOT ru> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2.5i |
In-Reply-To: | <000501c09d6d$932ab6a0$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Fri, Feb 23, 2001 at 10:52:31AM +0300 |
On Fri, Feb 23, 2001 at 10:52:31AM +0300, Andrej Borsenkow wrote: > > > > > The shortcut contains a DOS path and a POSIX path. The POSIX path is > > used by Cygwin or U/WIN. The DOS path is used by native Windows tools, > > obviously. > > > > That is, when I open shortcut properties in Explorer I see DOS path? Then > there is a possibility that user changes shortcut there and DOS/Cygwin paths > differ. One way to store paths checksums in .lnk; but it is not clear what to > do in this case - you cannot recreate possibly relative Unix path from changed > DOS one. Probably, in this case the right thing is to invalidate Unix path in > shortcut alltogether. It's exactly what is done by Cygwin. A shortcut created by Cygwin or U/WIN has a special header format which is sort of uncommon. Additionally, the R/O attribute is set and maintained by Cygwin and U/WIN. When a user changes a shortcut s/he has to remove the R/O attribute first. If that attribute isn't set the shortcut is treated as a standard Explorer shortcut. If a user changes the content of the shortcut the header format changes since Explorer creates a completely different header. Even if the user sets back the R/O attribute the new header avoids that Cygwin uses the POSIX path in future and the shortcut is treated as all other Explorer shortcuts. They are treated as a symlink with only a DOS path pointing to the target. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |