microsoft / microsoft/WSL

Windows programs can't open Linux symlinks but mysteriously only ones involving particular directories

Open
#13,235 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

file system
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Windows Version

Microsoft Windows [Version 10.0.26100.4349]

WSL Version

2.5.9.0

Are you using WSL 1 or WSL 2?
  • WSL 2
  • WSL 1
Kernel Version

6.6.87.2

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps
wsl --install
sudo mkdir -p /nix/store/xvlkn1ad6xxwflb0rw591vxkjck00rnw-rust-std-1.88.0-x86_64-pc-windows-msvc/lib/rustlib/x86_64-pc-windows-msvc/lib
sudo touch /nix/store/xvlkn1ad6xxwflb0rw591vxkjck00rnw-rust-std-1.88.0-x86_64-pc-windows-msvc/lib/rustlib/x86_64-pc-windows-msvc/lib/test.txt
sudo mkdir -p /nix/store/5x29r6bf14i5j8l2nb7w56imifm39p3j-rust-minimal-1.88.0/lib/rustlib/x86_64-pc-windows-msvc/lib
sudo ln -s /nix/store/xvlkn1ad6xxwflb0rw591vxkjck00rnw-rust-std-1.88.0-x86_64-pc-windows-msvc/lib/rustlib/x86_64-pc-windows-msvc/lib/test.txt /nix/store/5x29r6bf14i5j8l2nb7w56imifm39p3j-rust-minimal-1.88.0/lib/rustlib/x86_64-pc-windows-msvc/lib/test.txt
notepad.exe '\\wsl.localhost\Ubuntu\nix\store\5x29r6bf14i5j8l2nb7w56imifm39p3j-rust-minimal-1.88.0\lib\rustlib\x86_64-pc-windows-msvc\lib\test.txt'
Expected Behavior

A Windows program should be able to open the symlink no matter what path it is at or what path it is linking to.

Actual Behavior

"The system cannot find the path specified."

Diagnostic Logs

WslLogs-2025-07-08_12-07-02.zip includes only me running notepad.exe with the problematic path.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the supplied WSL 2 setup, symlink commands, and notepad.exe path, then review the attached WslLogs archive. Compare Windows access to symlinks under the shown directory paths; done means a Windows program can open the linked file regardless of its location or target path.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.