public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: cyg Simple <cygsimple@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Fish shell fails with PermissionDenied on rename file, if Cygwin home directory is a Junction.
Date: Tue, 11 Sep 2018 19:28:00 -0000	[thread overview]
Message-ID: <f29d43ac-409a-a8c0-1f96-b8192277aa8e@gmail.com> (raw)
In-Reply-To: <8lofpdpcl4quigtvebs6fh8shk0lgmiieb@4ax.com>

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

      reply	other threads:[~2018-09-11 19:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-07 19:28 Marcin Kielar
2018-09-10 16:06 ` Andrew Schulman
2018-09-11 12:46   ` cyg Simple
2018-09-11 15:50     ` Andrew Schulman
2018-09-11 19:28       ` cyg Simple [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f29d43ac-409a-a8c0-1f96-b8192277aa8e@gmail.com \
    --to=cygsimple@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).