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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=mOeN8eRonFW1tDMs a9mhosNHxKc3xBEPUycNOQmrWIpkYNtiU8YSrtgfaG0Xbeh2nLErcHHWwLO5x6kq n/Va8D8gf+HGc5ch5j3NrfigPFBT/Mg5uxuMN/f3EO5IPrQzvp9dTvatJ7wNqJwC Ta2ld1q7RIIMlHSkBOgFGwwxpeM= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Iv3G5WU1tCNeEzUJfUGZiK eihDA=; b=PiAzSUfoXttv+NzF0I7re/TwJLWuUo5dZJ/OH9657FacVLuhfhDWhm JZ4eZKwFsDim+zpQa6ZziC10BT4ZsIqAS0jqsQqhFq7i14iL6esejX0OXJVDqbW4 J+iUBozKySl8j7lRs0OywmMul3R+K3UWuKQ5qA7SLklhOZqHodQuU= 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-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:209.85.214.66, Hx-spam-relays-external:209.85.214.66 X-HELO: mail-it0-f66.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/k6/USIF+f32yXMmDX86E5w3WCHr1CByVipDuQd7DoU=; b=sEEyt4y1qWUcDgEL/FYfY/kG1DbwwJc9SmuKo05rQtYFfX2CA1pSBYaV/4BCdrhVfX pR13gC2x4cwK2jW7hsKXFYuKjN5TrSvWHCO+80OUXxXGZ+e7vLdHAqDzY3bvZDZO7x2/ YIotHXvdc4zH+eC6+biOxvA/+ovNreU5z1/ikVp5fFu0eAyTrxjVsPiLk/4kfGRYzzbC edr6BviAgC1GEMRoWMcN0qSKvv8D0AfUZfNgpm6/aR2OqhuFE11FWooycYe5ax8iOFzU DxnMxTrJLNnN/heGWBs/ZBEyjMX7J5x+8YKBy84rC5+Bb2OAw9w1UkkhQ3swFES6i5qA 3L9g== Subject: Re: Fish shell fails with PermissionDenied on rename file, if Cygwin home directory is a Junction. To: cygwin AT cygwin DOT com References: <5b92d157 DOT 1c69fb81 DOT 18fb3 DOT aaac AT mx DOT google DOT com> <025dpdl6cam8kkcq4s21nr4lbqhqrdudrn AT 4ax DOT com> <8lofpdpcl4quigtvebs6fh8shk0lgmiieb AT 4ax DOT com> From: cyg Simple Openpgp: preference=signencrypt Message-ID: Date: Tue, 11 Sep 2018 15:28:24 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <8lofpdpcl4quigtvebs6fh8shk0lgmiieb@4ax.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 9/11/2018 11:50 AM, Andrew Schulman wrote: >> On 9/10/2018 12:06 PM, Andrew Schulman wrote: >>>> This report originates from a ticket created on Fish Github account here: https://github.com/fish-shell/fish-shell/issues/2590 >>>> The issue is, that for some reason, running fish shell fails with PermissionDenied error if the home directory is a Windows Junction. >>> >>> Unfortunately I don't know how to help with this. fish works fine except in >>> this case where the directory ~/.config/fish is somewhere under a Windows >>> junction. Since I don't know how to solve that, I asked Marcin to report >>> the problem here. >>> >> >> A windows `junction` and not a `symlink`? They're not the same thing. > > Note that I'm not the one who has this problem, but my understanding is > that it happens when the ~/.config/fish is somewhere under a Windows > junction, not a symlink. > >> If you truly mean `junction` then the issue is yours to fix. > > It's true that the user could avoid the problem by changing their file > systems so that ~/.config/fish isn't under a junction point. But I don't > think they should have to do that. > > To me it seems like a bug that rename2() is failing when the target file is > under a junction point. > See https://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks to determine if you can find a solution. In general though junctions are treated as symlinks while traveling into the directory. However the file system attributes are specific and required as described in the document I pointed to above. -- cyg Simple -- 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