www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/12/05/22:32:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4820B3858C60
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 1B63VPvS016246
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1638761485;
bh=xuqiryZ3YEE0i7CMsFHeonQ4jhi9QwKrotQCCzigFVU=;
h=Date:From:To:Subject:In-Reply-To:References:From;
b=dXD68x8Fpn7UupNRA60qdC5YMofBSy5LuuUIR+gda94pXWHGP44/ZFFqGVR8fzOBX
gJ0ZrSvSu0H2jwK0xuw07IUq6yxUjJZcS5lM2x1U0VltHyEZ78dv1HhbJ1o7yq8FGz
aT0YsWhRoxCKx59y/cqZVI3v+HgBWi/VkCB/H7trPXsBgVElyN3V9txkedYj+j+u3i
dK9uuxGN20KkvM02t17oSnfaDgxJKQlbyevRdPf9QgvlLCo0mabdvmM+xlTZOQF48P
KrlHtLzk51qSe7J16yrZUMoOqgy7ZKpzh1njW9CjjTyXq4cborndbWl0YMi6VyjZ4z
m0y5rjlNc+C8A==
X-Nifty-SrcIP: [110.4.221.123]
Date: Mon, 6 Dec 2021 12:31:35 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: vboxsharedfs - Too many levels of symbolic links
Message-Id: <20211206123135.19fce6f5d2e186ab51bd53b8@nifty.ne.jp>
In-Reply-To: <36be1c59-efd1-5cfb-93c1-baf629a897dc@oskog97.com>
References: <d6470ffe-8e49-3eb7-4d21-3212e0ad4f31 AT oskog97 DOT com>
<20211205115411 DOT 1619911cb3e2d23f671912ce AT nifty DOT ne DOT jp>
<36be1c59-efd1-5cfb-93c1-baf629a897dc AT oskog97 DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1B63WMs7028287

On Sun, 5 Dec 2021 16:49:13 +0200
Oskar Skog wrote:
> But if I create a symlink on that filesystem, it's not identified as a
> symlink. Although, I don't know if this has ever worked as it is the
> first time I've ever tested it, it probably hasn't ever worked (see
> below).
> 
> user AT DESKTOP-******* /cygdrive/z$ ln -s report.pdf test.pdf
> user AT DESKTOP-******* /cygdrive/z$ ls -l report.pdf test.pdf
> -rw-r--r-- 1 user None 1454562 Nov 28 12:05 report.pdf
> -rw-r--r-- 1 user None      34 Dec  5 16:36 test.pdf
> user AT DESKTOP-******* /cygdrive/z$ cat test.pdf
> !<symlink>â–’â–’report DOT pdfuser AT DESKTOP-******* /cygdrive/z$
> 
> I think it's because "special" attributes don't work on VirtualBox
> shared folders, I can't hide files in Explorer either.
> 
> So I don't think the patch has caused any regression here.

I cannot reproduce that behaviour.

yano AT DESKTOP-LSNFFD0 /cygdrive/z
$ echo AAAAAAAAAAAA > a

yano AT DESKTOP-LSNFFD0 /cygdrive/z
$ ln -s a b

yano AT DESKTOP-LSNFFD0 /cygdrive/z
$ ls -l b
lrwxrwxrwx 1 yano None 1 Dec  6 12:17 b -> a

yano AT DESKTOP-LSNFFD0 /cygdrive/z
$ cat b
AAAAAAAAAAAA

yano AT DESKTOP-LSNFFD0 /cygdrive/z
$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type iso9660 (binary,posix=0,user,noumount,auto)
Z: on /cygdrive/z type vboxsharedfolderfs (binary,posix=0,user,noumount,auto)


Are you running VirtualBox in non-windows host by any chance?
cygwin symbolic link seems to work only in NTFS file system.

If shared folder is in linux file system, cygwin symbolic link
does not work.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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