Re: Fish shell fails with PermissionDenied on rename file, if Cygwin home directory is a Junction.
- Date: Tue, 11 Sep 2018 11:50:15 -0400
- From: Andrew Schulman <schulman.andrew@xxxxxxx>
- Subject: Re: Fish shell fails with PermissionDenied on rename file, if Cygwin home directory is a Junction.
> 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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple