[libcxx-commits] [PATCH] D98166: [libcxx] Test accessing a directory on windows that gives "access denied" errors

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 18 04:45:29 PDT 2021

mstorsjo added a comment.

In D98166#2634181 <https://reviews.llvm.org/D98166#2634181>, @curdeius wrote:

> How do you call bash then? Which bash is this?
> I get `ls: cannot open directory '[/mnt]/c/System Volume Information/': Permission denied` from both WSL bash (`C:\Windows\System32\bash.exe`) and git bash `d:\Program Files\Git\bin\bash.exe`.
> Wouldn't you run it as admin?
> BTW, I can't access it even when running bash as Administrator nor using sudo inside.

I'm testing it with git bash (and with an msys2 shell), on a setup with Windows Server 2019, running as Administrator user. In a regular cmd shell I can't access the directory.

I tested on a normal desktop installation now, and there I see the same as you, that it works as we'd expect and we can't access the directory in any setup. So apparently there's something different with the server versions or the installations of server I'm using (plain new Windows Server instance on Amazon EC2 with only a few tools installed).

  rG LLVM Github Monorepo



More information about the libcxx-commits mailing list