delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/01/16:03:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 1 Aug 2002 16:03:25 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bug: hard links to soft links do not work
Message-ID: <20020801200325.GC27689@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <sa0eldimogw DOT fsf AT glip DOT premonitia DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020801123520 DOT 01f97010 AT pop3 DOT cris DOT com>
Mime-Version: 1.0
In-Reply-To: <5.1.0.14.2.20020801123520.01f97010@pop3.cris.com>
User-Agent: Mutt/1.3.23.1i

On Thu, Aug 01, 2002 at 12:42:45PM -0700, Randall R Schulz wrote:
>% ll -i foo 1 2 3
>6537940 -rw-rw-r--    2 RSchulz  None            4 Aug  1 12:34 1
>10863326 lrwxrwxrwx    2 RSchulz  None           82 Aug  1 12:34 2 -> 1
>10863326 -r-xr-xr-x    2 RSchulz  None           82 Aug  1 12:34 3*
>6537940 -rw-rw-r--    2 RSchulz  None            4 Aug  1 12:34 foo
>
>My hunch is that a patch gratefully accepted for this situation would be an 
>addition to the "ln" command that detected when the target was a Windows 
>shortcut-based Cygwin symlink and in that case supplied the ".lnk" 
>extension if it was not already present in the specified new link name.

I don't think this is a 'ln' problem.  It's a cygwin problem.  If cygwin
is doing the wrong thing then it should, as Sam said, either be made to
work or fail, not provide binary gobbledegook.

If this was to be made to work correctly, it would be pretty low level
in cygwin in the path_conv and symlink_check methods.

It would be much easier to fail in this scenario rather than make it
work correctly, I think.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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