| delorie.com/archives/browse.cgi | search |
| 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 |
| X-Originating-IP: | [195.224.233.3] |
| From: | "John Vincent" <jpv50 AT hotmail DOT com> |
| To: | cgf-cygwin AT cygwin DOT com |
| Cc: | cygwin AT cygwin DOT com |
| Subject: | Re: bug: hard links to soft links do not work |
| Date: | Fri, 02 Aug 2002 11:34:55 +0000 |
| Mime-Version: | 1.0 |
| Message-ID: | <F28iIZIHpW1HExRneM0000249e6@hotmail.com> |
| X-OriginalArrivalTime: | 02 Aug 2002 11:34:55.0623 (UTC) FILETIME=[9FE86970:01C23A18] |
Hi, I've looked at this some more, and I think I've figured out what it's doing. The hard link is now a link to the *target* of the soft link instead of a link to the soft link itself. This seems like a reasonable compromis to me (since the whole soft link thing is a bit of a kludge on windows, due to the .lnk suffix). Does it still do something reasonable if the target is a link to a link? Also, I think the warning message you get in Linux about non-portability would also be a useful addition to the cygwin version of the ln program. Well, that's my tuppence worth ... /John Vincent. >I've checked in a patch. What I've done isn't consistent with linux but >at least it does something sensible now: > > j:\tmp>touch x > j:\tmp>ln -s x y > j:\tmp>ln y z > j:\tmp>ls -l ? > -rw-rw-rw- 2 cgf None 0 Aug 1 19:56 x > lrwxrwxrwx 1 cgf None 82 Aug 1 19:56 y -> x > -rw-rw-rw- 2 cgf None 0 Aug 1 19:56 z > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |