ostreedev / ostree-rs-ext

Rust library with higher level APIs on top of the core ostree API
Apache License 2.0
74 stars 24 forks source link

encapsulate: Fix regression with relative directories #593

Closed cgwalters closed 7 months ago

cgwalters commented 7 months ago

https://github.com/ostreedev/ostree-rs-ext/pull/586/commits/b104a467e9ed06663194c3b60334a5246eb988fb 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)