1 suggestion
Earlier concerns neither republished nor resolved: 1 minor finding · 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · The new test does not cover exclusive-create or append semantics
A regression in the POSIX mode mapping for "wbx" or "ab" could go undetected by the current test.
Location: src/test/fs_tests.cpp:153 (head).
Details and suggested fix
On non-Linux POSIX targets, fsbridge::fopen maps mode strings to open() flags before calling fdopen. The new test checks only a fresh "wb" file and its FD_CLOEXEC flag. It does not verify that "wbx" fails with errno == EEXIST on an existing file without changing its contents, or that "ab" preserves existing bytes and writes after them. These semantics matter to callers including InitBlocksdirXorKey. Extend the test to check both behaviors and verify the noninheritable flag on each successfully opened stream. The current mapping is correct for checked-in callers; this suggestion is for regression coverage.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [minor]: The unconditional
<cstring>include fails IWYU on Linux (earlier report) - [suggestion]: New code has formatting inconsistencies and an unused test include (earlier report)