You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Honor the requested mode in the Windows access provider #705
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.os compatibilityIssues related to making Wave work with specific operating systems or fixing compatibility problems.
std/sys/windows/fs.wave exposes FS_F_OK, FS_X_OK, FS_W_OK, and FS_R_OK, but access(path, mode) never reads mode. Any existing path therefore succeeds regardless of the requested access check, so a write check currently behaves the same as an existence check.
Other filesystem providers pass the requested mode through to their native access primitive, so the Windows provider does not preserve the portable contract.
Completion criteria
Keep FS_F_OK as an existence check.
Make nonzero access modes affect the Windows result instead of being ignored.
Ensure a read-only file does not report writable for FS_W_OK.
Define and test the Windows behavior for the exported FS_R_OK and FS_X_OK modes.
Return the existing portable negative error codes on failure.
Add focused Windows regression coverage for existence, readable, and non-writable cases.
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.os compatibilityIssues related to making Wave work with specific operating systems or fixing compatibility problems.
Activity