-
Notifications
You must be signed in to change notification settings - Fork 377
Revert "chroot_realpath: do not return non-existing paths" #1784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 17135c1 It introduced a regression. Closes: containers#1783 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
Ephemeral COPR build failed. @containers/packit-build please check. |
|
TMT tests failed. @containers/packit-build please check. |
Reviewer's GuideThis PR reverts the previous change that caused chroot_realpath to return partial paths for non-existent components, restoring the original behavior of failing on ENOENT errors. Sequence Diagram: Updated chroot_realpath Handling of ENOENT from readlinksequenceDiagram
participant C as Caller
participant CRF as chroot_realpath
participant FS as Filesystem (OS via readlink)
C->>CRF: chroot_realpath(chroot, path, resolved_path_buf)
CRF->>CRF: ...path resolution processing...
CRF->>FS: readlink(current_component_path, ...)
FS-->>CRF: returns -1 (error), errno = ENOENT
CRF->>CRF: Check if errno is ENOENT (new handling)
CRF->>CRF: sprintf(resolved_path_buf, "<translated_prefix>/<remaining_path_segment>")
CRF-->>C: return resolved_path_buf (partially resolved path)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Ephemeral COPR build failed. @containers/packit-build please check. |
|
TMT tests failed. @containers/packit-build please check. |
|
@flouthoc PTAL |
kolyshkin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
thanks, merging now |
This reverts commit 17135c1
It introduced a regression.
Closes: #1783
Summary by Sourcery
Bug Fixes: