delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/11/01/18:50:18

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=rp+9/37YJIk8TR7F1ArU/fhsShper5fT0lOEdmZ45rFe9OiMoQjiJ
YOfYYE11+hx1tPTRago9hiOR5CvpCkfLJKEGVkeelDqUhNiYIYOdDz5aIwI3awvr
aEqrWrTH/fsYsAttfetEGDUoj93XwlDeFf+dQzjB8zRcj4UoOVRa2Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=5eY3uyBaywoablIo+lt1c57n1ag=; b=DZywoDPS+BmQr1A5fk6nazcEMdvB
3WanJIwW7kRI/PnBAke1gTz13LhKylEo64/44iwCiE2KAV7Zcam1BWedqYGorKw8
SxdNy8ZdIMSpF8VMLE6FrN2PAwZ1BQC2Fd2gndjPBOpFLoFwTT9GTvS+K+crRYR9
c2JWO4VNciFmoz4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=Repin, Andrey, andrey, repin
X-HELO: forward103j.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1541112601; bh=VeW52+DBwAozN8DtY79bPylDh2ECpLjhYLWHPsj+ukI=; h=Date:From:Reply-To:Message-ID:To:Subject; b=j3TQyTleNz4GKZNk71X8J7IgmW72f34o6mapNuUlDlrIy7fD6OJCWYoZ1ym9TgoBR 0GLBSI4pjSWsHTFt2dfZxE1bNcX9bbLfBuIdJIY6iIAp0iHacBtEdc0mo6xkL45P2w 3dxEfd+VaWDyjqnLuqLwkMJkOnjq9i8LF2i8CPZg=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1541112601; bh=VeW52+DBwAozN8DtY79bPylDh2ECpLjhYLWHPsj+ukI=; h=Date:From:Reply-To:Message-ID:To:Subject; b=j3TQyTleNz4GKZNk71X8J7IgmW72f34o6mapNuUlDlrIy7fD6OJCWYoZ1ym9TgoBR 0GLBSI4pjSWsHTFt2dfZxE1bNcX9bbLfBuIdJIY6iIAp0iHacBtEdc0mo6xkL45P2w 3dxEfd+VaWDyjqnLuqLwkMJkOnjq9i8LF2i8CPZg=
Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 2 Nov 2018 01:39:08 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <123348672.20181102013908@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: Stumbled upon relative name resolution across symlinks
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id wA1MoGFt006408

Greetings, All!

$ pwd
/home/anrdaemon/Documents/NIX/CA-tutorial/test

$ ls -ld bin ca-profile
lrwxrwxrwx 1 anrdaemon None  61 ноя  2 01:15 bin -> /home/anrdaemon/Documents/NIX/CA-tutorial/svn-working/scripts
-rwx--x--x 1 anrdaemon None 588 дек 24  2017 ca-profile

$ cat bin/../ca-profile
cat: bin/../ca-profile: No such file or directory

$ cat $( realpath -Le "bin/../ca-profile" )
# @version $Id: ca-profile 82 2014-02-08 05:24:12Z anrdaemon $
...

In simpler words, the bin directory is symlinked from elsewhere.
realpath -Le resolves correctly, but all other filesystem functions fail.

I vaguely recall that there was some discussion on the matter, but search
returns too many results, can't read them all.
My question, basically: is this expected way of things?
If so, I'd just workaround it. Sad but doable.


-- 
With best regards,
Andrey Repin
Friday, November 2, 2018 1:31:12

Sorry for my terrible english...
--
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


- Raw text -


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