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:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; q=dns; s=default; b=lJR 65fU5De83IfiykAlWWu2O7UaiAqpMWTAD5CEnhNlK0e93Slz8xGLqwHDEVr1T3mK tkkTl+BQamnnpvs0CaPm8TP6oToIa0YPby7pW+7tDfgNuwce303Jfx5rO5Z1YAxa /3CjitgG+GjKaYzMQVbDfvoO24rmoSg/1KgKOcDs= 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:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; s=default; bh=CJKECMd4g lcyLpkon11zphpU3F0=; b=kEOgImFZsy/gFNxJGIgdPcW0aiuPw7zI4IdbbE3O/ knevVDixTwlf7znOP4VDG6jr7hjmp4PjQsDFWnNNgJd8Ek5QR1IvmjcKPK/+mZH8 Tdi4itrGi0YXyvHa09AtD37PgXyR75r45xXXkFBAYWSxPonmRADOAWRlmfWBKiJK 2I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f42.google.com MIME-Version: 1.0 X-Received: by 10.194.77.44 with SMTP id p12mr22457194wjw.1.1429445790721; Sun, 19 Apr 2015 05:16:30 -0700 (PDT) Date: Sun, 19 Apr 2015 14:16:30 +0200 Message-ID: Subject: Is there a way to make an existing UNC symbolic link behave like a mount point? From: Skarr Socrates To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t3JCGm5B016364 Hi all, I am experiencing problems with a UNC symbolic link and how it is interpreted by cygwin. The issue is as below: * MachineA is a freebsd server (10.1-RELEASE-p9) with a simple samba3.6 [homes] share. * MachineB is a Windows 7 Ultimate, the user "bob" bsd home is not mapped to a network drive, instead a symbolic link is made under windows cmd: C:\Users\Bob> mklink /D bsdhome \\SOCRATES\bob This setup has been working for over 2 years without problems, I should mention also that Windows 7 sync center is used to keep bob's freebsd files available even when he is not connected to the server (not sure if this is relevant at all to the issue). Recently, I installed cygwinx64 (CYGWIN_NT-6.1), all went very well, the link "seem" to be recognized by cygwin. bob AT machinea /cygdrive/c/Users/bob $ ls -l [----cut----] lrwxrwxrwx 1 bob None XX XX XX XX:XX bsdhome -> //MACHINEB/bob/ [----cut----] The problem I have is how to make cygwin somehow behave consistently with respect to this link. For instance, the bash builtin cd gives: bob AT machinea /cygdrive/c/Users/bob/bsdhome $ cd .. bob AT machinea /cygdrive/c/Users/bob $ However, bob AT machinea /cygdrive/c/Users/bob $ touch file.txt bob AT machinea /cygdrive/c/Users/bob/bsdhome $ cd bsdhome bob AT machinea /cygdrive/c/Users/bob/bsdhome $ cp ../file.txt . cp: cannot stat ‘../file.txt’: No such file or directory Trying to do the same thing with windows/DOS cmd.exe works just fine. To make sure that windows created symbolic links behaved consistently, I created with the same process another symbolic link, but in this case to a directory and not to a network share, and proceeded to do the same copy. I couldn't reproduce the problem and the process was successful in cygwin. So as far as I came to fixing this problem, I found that cygwin somehow interprets ".." in the case of a network share symbolic link is actually pointing to //MACHINEB on the (//) virtual directory, which made no sense to me as far as symbolic links go and even if it did why would it work in the case of a normal directory...one too many slashes? :-) I understand the symptoms but I have no clue how to make this work or if this is a feature or a bug. Is this related to the virtual directory? can it be disabled? I did go through the documentation and googled the life out of me before posting here, the answer is probably too obvious and I can only blame my inexperience with cygwin. Perhaps someone has faced a similar situation, any help or hint would be much appreciated. /Socrates. -- 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