Skip to content

[pull] master from gulrak:master - #65

Open
pull[bot] wants to merge 56 commits into
jnhyatt:masterfrom
gulrak:master
Open

pull[bot] wants to merge 56 commits into
jnhyatt:masterfrom
gulrak:master

Conversation

@pull

@pull pull Bot commented Apr 27, 2024

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot added the ⤵️ pull label Apr 27, 2024
@coveralls

coveralls commented Apr 27, 2024

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 8859155396

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 95.498%

Totals Coverage Status
Change from base Build 8495518484: 0.2%
Covered Lines: 3564
Relevant Lines: 3732

💛 - Coveralls

bbannier and others added 23 commits December 18, 2024 15:26
GNU `getcwd` can allocate a buffer if passed `NULL` for it. This is an
extension which is e.g., not recognized by clang-tidy-19's
`StdCLibraryFunctions` check[^1] which emits a diagnostic on a violated
precondition `buf != NULL`,

```
The 1st argument to 'getcwd' is NULL but should not be NULL [clang-analyzer-unix.StdCLibraryFunctions,-warnings-as-errors]
[build]  3987 |     std::unique_ptr<char, decltype(&std::free)> buffer{::getcwd(NULL, 0), std::free};
```

This patch modifies this use of `getcwd` with this extension behavior to
instead use `get_current_dir_name` which is also a GNU extension, but
does not trigger this diagnostic.

[^1]: https://clang.llvm.org/docs/analyzer/checkers.html#unix-stdclibraryfunctions-c
centos7 has reached EOL on 2024-06-30, centos8 on 2021-10-31. In
practical terms this means that their package repositories are offline
for the foreseeable future and the CI tasks making use of them might
never run again.

This patch replaces the existing CI jobs on centos7/centos8 with jobs on
rockylinux8/9. Since rockylinux is an open source variant similar to
RHEL this should provide testing with similar spirit. In contrast to
centos, rockylinux does provide very granular tagging of releases which
if used would help avoid breaking on e.g., subtle package changes in
their package repositories. I however did not use very precise tags in
the patch and instead went with broad "trains" for the 8 and 9 series;
I hope this minimizes maintenance overhead (e.g., bumping to new
releases) while still giving a good testing signal.
This resolves warnings when compiling with -wundef (and errors when
combined with -werror).
Check macros are defined before use
…-buf

Avoid GNU `getcwd` extension behavior
- read(): POSIX specifies that errno is undefined when read() return values are >= 0.
  The previous retry logic had bugs:
  When read() returns 0 (EOF), the loop condition checked errno before
  the return value. Since errno might be stale from a previous call, this could
  trigger a false retry on EOF.

- readdir(): When readdir() reaches the end of directory, it returns NULL
  without modifying errno. Setting errno=0 before the loop caused an infinite loop.
…orkaround for GCC 5-6, ensuring unified CMake configuration across all versions.
Fix EINTR handling in read() and readdir() loops
gulrak and others added 28 commits December 31, 2025 22:22
Added MSYS2 compilers to GitHub workflow
…nter feature for broader compiler support.
commit 333fc89
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Jul 11 18:37:05 2026 +0200

    Removed extra tests that were added but unrelated to the fix.

commit 542f355
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Jul 11 18:29:40 2026 +0200

    lexically_normal() preserves IPv6 components in device UNC paths (#170)
Refactored to use `AddExecutableWithStdFS` for conditional standard filesystem testing, ensuring proper linking and test setup only when the target is available.
commit a6aab92
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Jul 11 23:04:57 2026 +0200

    Refine `weakly_canonical` test to validate error codes and handle invalid paths more robustly.

commit 21b931b
Merge: 48a868a 134f5e6
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Jul 11 22:11:16 2026 +0200

    Merge branch 'master' into feature-204-weakly-canonical-ignores-errors

commit 48a868a
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Jul 11 21:48:57 2026 +0200

    Propagate `weakly_canonical()` component lookup errors and improve error handling in filesystem tests (#204)
commit 16e1157
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sun Jul 12 14:53:28 2026 +0200

    Improve file time precision checks and initialize `directory_entry`'s `_last_write_time`

commit 4bc18b0
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sun Jul 12 13:12:35 2026 +0200

    Preserve subsecond precision for `last_write_time()` and related filesystem metadata (#208)
Added the security policy to include details on supported versions, reporting vulnerabilities, and response timelines.
Add a FreeBSD job on GitHub Actions to replace the retired Cirrus CI task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants