Skip to content

windows wasi: rmdir on symlink to dir succeeds #12178

@wingo

Description

@wingo

To repro:

    dir.symlink_at(".".to_string(), "dot".to_string()).await.unwrap();
    assert_eq!(
        dir.remove_directory_at("dot".to_string()).await,
        Err(ErrorCode::NotDirectory)
    );

Expected result: fails with NotDirectory

On windows, it succeeds: https://github.com/WebAssembly/wasi-testsuite/pull/198/files#r2630813076

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixingwasiIssues pertaining to WASIwasi:implIssues pertaining to WASI implementation in Wasmtimewasi:testsIssues pertaining to WASI tests in Wasmtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions