delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/26/03:48:15

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: Mon, 26 Feb 2001 09:47:34 +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: <20010226094734.F27406@cygbert.vinschen.de>
Mail-Followup-To: Cygwin <cygwin AT cygwin DOT com>
References: <3A956DFF DOT A61DDBE6 AT yahoo DOT com> <GAENLJIGIGCHDHJMOLPDCEMGCFAA DOT lothan AT newsguy DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <GAENLJIGIGCHDHJMOLPDCEMGCFAA.lothan@newsguy.com>; from lothan@newsguy.com on Sun, Feb 25, 2001 at 11:52:40PM -0800

On Sun, Feb 25, 2001 at 11:52:40PM -0800, Lothan wrote:
> a deal. An additional problem with .lnk files is that the links could be
> manipulated with a Win32 application (i.e. Explorer) such that the DOS path
> references a different object than the POSIX path. On the one hand, it's
> tempting to say this isn't going to be a big problem and can be handled as a
> simple FAQ entry -- especially considering that I like the idea of using
> .lnk files. On the other hand, how many people actually read the FAQ... and
> who's willing to live with the idea that a link to /bin/rm.exe that was
> changed via Explorer to C:\Cygwin\bin\cp.exe suddenly deleted all my files?
> Perhaps an alternative (if possible) is to add a checksum of the DOS path to
> the POSIX portion of the link? It may not be perfect, but at least that way
> code can tell if the DOS path was changed and a warning issued.

I already told this here. As soon as the link is manipulated in Explorer
Cygwin (and U/WIN) treats the POSIX path as invalid and only uses the
DOS path from then on.

I don't like the idea of a warning, though. The user is already warned
enough when changing the shortcut: A Cygwin (U/WIN) created shortcut has
the R/O bit set. The first try to change the shortcut opens a message box

	Unable to save changes to 'foo.lnk'.

		Access is denied.

If a user then removes the R/O attribute either he knows what he's doing
or he has to live with the consequences.

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

- Raw text -


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