Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

encapsulate: Fix regression with relative directories #593

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

cgwalters
Copy link
Member

b104a46 broke the rpm-ostree test suite, which encapsulates to a relative file path and so us doing chdir broke it.

Switch to passing down the dirfd and using /proc/self/fd.

(Mutable global state in chdir is bad)

ostreedev@b104a46
broke the rpm-ostree test suite, which encapsulates to a *relative*
file path and so us doing `chdir` broke it.

Switch to passing down the dirfd and using `/proc/self/fd`.

(Mutable global state in `chdir` is bad)
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jmarrero jmarrero merged commit ecce09a into ostreedev:main Jan 26, 2024
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants