Skip to content

WSL treating symlinks as win32 junction (redux) #4868

@therealkenc

Description

@therealkenc
  • Your Windows build number: (Type ver at a Windows Command Prompt)

19555 WSL 2 Ubuntu-18.04

  • What you're doing and what's happening

Repro from #4867 is how I noticed:

$ echo hello > /tmp/foo
$ ln -s /tmp/foo /tmp/bar
$ cd /mnt/c  # quash interop warning
$ cmd.exe /c dir '\\wsl$\Ubuntu-18.04\tmp\bar'

image

Looks like this was brought up in October 2019, but no one inc myself would notice in a long closed issue.

  • What's wrong / what should be happening instead:

Regress #353 (message). They were win32 symlinks (contrast junctions) as of 17046, as long as the user possesses SE_CREATE_SYMBOLIC_LINK_PRIVILEGE, which (quoth) "normally requires you to launch wsl.exe elevated), unless Developer Mode is turned on."

image

It is possible the definition of "developer mode" changed somewhere along the lines.

  • Strace of the failing command

The syscalls succeed, natch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions