Skip to content

filesystem::read_symlink and weakly_canonical fails in parallel access on Windows likely due to wrong access flag #138

@GitEvgen

Description

@GitEvgen

This is described well in this stack overflow article and has examples and a sample fix.
Two processes accessing a file via link (read-only) get a file sharing violation, because read-only is not passed to the underlying file access call (CreateFileW parameter)

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