From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121151 invoked by alias); 11 Sep 2018 19:28:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 121142 invoked by uid 89); 11 Sep 2018 19:28:30 -0000 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 Received: from mail-it0-f66.google.com (HELO mail-it0-f66.google.com) (209.85.214.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Sep 2018 19:28:28 +0000 Received: by mail-it0-f66.google.com with SMTP id j81-v6so3127698ite.0 for ; Tue, 11 Sep 2018 12:28:28 -0700 (PDT) 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== Return-Path: Received: from [192.168.0.16] (d47-69-109-131.nap.wideopenwest.com. [69.47.131.109]) by smtp.gmail.com with ESMTPSA id i77-v6sm674134itb.16.2018.09.11.12.28.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 12:28:26 -0700 (PDT) Subject: Re: Fish shell fails with PermissionDenied on rename file, if Cygwin home directory is a Junction. To: cygwin@cygwin.com References: <5b92d157.1c69fb81.18fb3.aaac@mx.google.com> <025dpdl6cam8kkcq4s21nr4lbqhqrdudrn@4ax.com> <8lofpdpcl4quigtvebs6fh8shk0lgmiieb@4ax.com> From: cyg Simple Openpgp: preference=signencrypt Message-ID: Date: Tue, 11 Sep 2018 19:28:00 -0000 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 X-SW-Source: 2018-09/txt/msg00160.txt.bz2 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