Skip to content

Question for directory_seek test #61

Open
@harry900831

Description

@harry900831

According to this test, it seems that using fd_seek on a directory is forbidden, though I can call lseek on a directory fd in POSIX. Also, we shouldn't set the fd_seek bits on a directory despite explicitly setting it in path_open.

I can't find any document or discussion related to this behavior which is unsetting the rights that are explicitly set in path_open for the directory.

My question is:

  • I'm wondering whether unsetting the rights is a good choice compare to returning ISDIR error while using the function.
  • Which right should be disabled if the file is a directory?

I believe this should be documented.

It seems that the rights system may be removed. Getting a workaround to pass the test is what I intended to do.

A related issue in wasi-filesystem: WebAssembly/wasi-filesystem#103

Thanks in advance!

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