Skip to content

fix: correctly decode WSL2 Docker mounts#368

Open
yuvald-sweet-security wants to merge 1 commit intoeminence:masterfrom
yuvald-sweet-security:fix-docker-mount
Open

fix: correctly decode WSL2 Docker mounts#368
yuvald-sweet-security wants to merge 1 commit intoeminence:masterfrom
yuvald-sweet-security:fix-docker-mount

Conversation

@yuvald-sweet-security
Copy link
Copy Markdown

Hello,
My WSL2 installation with Docker Desktop has the following mount line, which causes this crate to panic:
C:\134Program\040Files\134Docker\134Docker\134resources /Docker/host 9p rw,noatime,aname=drvfs;path=C:\Program Files\Docker\Docker\resources;symlinkroot=/mnt/,cache=5,access=client,msize=65536,trans=fd,rfd=3,wfd=3 0 0

(note that the spec field is correctly mangled, but the path mntop is not and has spaces, causing the split by space strategy to fail)

Is this fix good? Do you prefer to do something else?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant