Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory symbolic links inside the WSL root are not recognized by Windows programs #3301

Closed
sysprogs opened this issue Jun 14, 2018 · 1 comment

Comments

@sysprogs
Copy link

sysprogs commented Jun 14, 2018

We are using Windows 1803 (build 17134.112) and WSL with Ubuntu.
It appears that symlinks created from WSL outside the rootfs are properly recognized by Windows programs, e.g.:

(from bash)

cd /mnt/e/temp
mkdir dir1
ln -s dir1 dir2

(from cmd.exe)

cd /d e:\temp
dir

yields:

06/14/2018  10:36 AM    <DIR>          dir1
06/14/2018  10:36 AM    <SYMLINKD>     dir2 [dir1]

However, doing this inside the WSL's rootfs doesn't work:

(from bash)

cd ~
mkdir dir1
ln -s dir1 dir2

(from cmd.exe)

cd /d C:\Users\testuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\testuser
dir

yields:

06/14/2018  10:37 AM    <DIR>          dir1
06/14/2018  10:37 AM                 4 dir2

Here dir2 is not shown as a directory symlink, but instead as a test file containing the symlink target ("dir1"). Opening "dir2" from Windows Explorer or any other Windows tools doesn't work either.

@therealkenc
Copy link
Collaborator

other Windows tools doesn't work either.

Correct. It doesn't.

#1524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants