public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrew Schulman <schulman.andrew@epa.gov>
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 15:50:00 -0000	[thread overview]
Message-ID: <8lofpdpcl4quigtvebs6fh8shk0lgmiieb@4ax.com> (raw)
In-Reply-To: <e9b2ad12-1063-e07e-1b7e-0ef0de1bccd9@gmail.com>

> 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
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 15:50 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 [this message]
2018-09-11 19:28       ` cyg Simple

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=8lofpdpcl4quigtvebs6fh8shk0lgmiieb@4ax.com \
    --to=schulman.andrew@epa.gov \
    --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).