wslu tools report errors when automount root is quoted in wsl.conf #247
Labels
Bug
This is either an issue that describes a bug or a PR that resolves a bug
Status: Patched
This is fixed and is part of a released version.
Target: 4.x
This is targeted to the 4.x release.
Milestone
Background Information:
Windows 11 Pro 21H2
22000.1042
fedoraremix
running onWSL1
36.0.5
wsl --version
:dnf info wslu
:Describe the bug
When the
root
property contains a quoted value in/etc/wsl.conf
,wslu
tools show errors when ran, such as below:To Reproduce
Steps to reproduce the behavior:
/etc/wsl.conf
like this:root
property is wrapped in"
quotes.wslact --help
No such file or directory
warnings.Expected behavior
wslu
tools should understand quoted values inwsl.conf
and act accordingly.Additional context
wsl.conf
toroot = /
(unquoted), the issue disappears.wslu
implementation. If you refer to thewsl.conf
documentation, it does not clearly define what the format of the file is, and what syntax should be used. It only shows examples on how to use specific configuration sections, and in these examples theroot
property is indeed presented as unquoted. However, the example also shows that theoptions
property of the[automount]
section can be quoted, and that - in my opinion - suggest that any value in the file can be quoted and it should be handled properly.The text was updated successfully, but these errors were encountered: