Closed
Description
The following line here is problematic:
Line 115 in bc88950
It causes all the wsl utilities to break when /etc/wsl.conf
has the word root
in places other than the name of a property:
For example:
[automount]
root = /
[user]
default = root
Causes the interop_prefix to be set /\nroot
which is clearly invalid.
Here is a simple fix (I don't know awk
so there's probably a better one):
grep '^\s*root\s*=' /etc/wsl.conf | awk -F '=' '/root/ {print $2}' | awk '{$1=$1;print}'