8000 UNC and other DOS Device Paths unusable · Issue #348 · bytecodealliance/cap-std · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
UNC and other DOS Device Paths unusable #348
Open
@CryZe

Description

@CryZe

The following logic:

let wide_final = if wide.starts_with(&['\\' as u16, '\\' as _, '?' as _, '\\' as _]) {
&wide[4..]
} else {
&wide
};

completely breaks DOS device UNC paths such as:

\\?\UNC\server\share\bar.exe

which would have to be translated to:

\\server\share\bar.exe

in addition to that, other DOS device paths such as:

\\?\Volume{b75e2c83-0000-0000-0000-602f00000000}\Test\Foo.txt

get completely ruined.

There also is a lack of \\.\ handling. I'm also not sure why this gets stripped in the first place, join can handle these paths just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0