Fix unprovoked symlink errors in directory_entry - #353
Open
stm-ableton wants to merge 1 commit into
Open
Conversation
stm-ableton
marked this pull request as draft
August 3, 2026 09:53
stm-ableton
marked this pull request as ready for review
August 3, 2026 12:27
Member
|
I'd like to let you know that there is a massive change to library headers coming soon, that will likely make PRs against headers non-applicable. You may want to hold off the work on this. |
stm-ableton
marked this pull request as draft
August 3, 2026 14:59
Author
|
@Lastique Thank you for the heads up. I've converted to draft for now. |
stm-ableton
force-pushed
the
fix-directory-entry-symlink-errors
branch
from
August 23, 2026 06:22
5a366ca to
15dbc1d
Compare
Since boostorg@d508d49, a number of functions in directory_entry's public interface call directory_entry::refresh_impl, which updates the cached file status comprehensively. On POSIX systems, for example, both lstat and stat are called for symlinks, and stat errors are reported to the caller. As a result, e.g. checking the status of a symlink with symlink_status produces an error if the symlink target is gone or if access to it is denied. In v4, this also affects the constructor overload that takes an error_code, i.e. constructing a directory_entry with a path to a broken symlink produces an error. Add a parameter to refresh_impl allowing to configure what the caller is interested in, thus avoiding false positives.
stm-ableton
force-pushed
the
fix-directory-entry-symlink-errors
branch
from
August 23, 2026 09:04
15dbc1d to
76bf91a
Compare
stm-ableton
marked this pull request as ready for review
August 24, 2026 07:33
Author
|
I've rebased around 2466fc1 (I assumed this was the change to library headers). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #352.
Also adds tests exercising
directory_entry.