Skip to content

os: why must Chmod mode be non-zero on Windows? #20858

@bradfitz

Description

@bradfitz

From the beginning of Go until at least Go 1.9, the os.Chmod mode parameter must be non-zero on Windows.

I don't see why, though. syscall.Chmod returns EINVAL otherwise. Can we remove that?

I documented this in CL 47254 at least.

/cc @alexbrainman @ianlancetaylor

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.OS-Windowsearly-in-cycleA change that should be done early in the 3 month dev cycle.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions