The Windows access(path, mode) implementation ignores mode and only checks whether GetFileAttributes succeeds. Consequently R_OK, W_OK, X_OK and invalid mode bits are all treated like F_OK. Callers asking whether an operation is permitted can receive success solely because the path exists.
Source evidence at the head of #520:
Acceptance:
Related: #385. This concerns successful-but-false permission answers, separate from preserving native failure codes.
Audit status: identified by static source inspection; the scenarios above have not been executed during this audit. The permalink fixes the reviewed revision; this report does not claim the defect was introduced by #520.
The Windows
access(path, mode)implementation ignoresmodeand only checks whether GetFileAttributes succeeds. Consequently R_OK, W_OK, X_OK and invalid mode bits are all treated like F_OK. Callers asking whether an operation is permitted can receive success solely because the path exists.Source evidence at the head of #520:
pub fun accesspub const FS_X_OKAcceptance:
Related: #385. This concerns successful-but-false permission answers, separate from preserving native failure codes.
Audit status: identified by static source inspection; the scenarios above have not been executed during this audit. The permalink fixes the reviewed revision; this report does not claim the defect was introduced by #520.