Skip to content

Conversation

@cyphar
Copy link
Owner

@cyphar cyphar commented Jan 10, 2026

For the pathrs_inroot_* API, it is a little cleaner to always have the
path to resolve be the first argument. However, when writing the e2e
tests I realised that diverging from the syscall API is just going to
cause confusion.

This is also a decent test case for our symbol versioning being used to
keep old binaries working (though in practice this is just a straight-up
breakage that doesn't need to be patched over).

Fixes #267
Signed-off-by: Aleksa Sarai cyphar@cyphar.com

@cyphar cyphar force-pushed the link-argument-order branch from ed0f49e to e997ec0 Compare January 10, 2026 13:29
@codecov
Copy link

codecov bot commented Jan 10, 2026

Codecov Report

❌ Patch coverage is 30.00000% with 14 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/capi/core.rs 30.00% 14 Missing ⚠️

📢 Thoughts on this report? Let us know!

@cyphar cyphar force-pushed the link-argument-order branch from e997ec0 to c6e1c6a Compare January 10, 2026 13:35
For the pathrs_inroot_* API, it is a little cleaner to always have the
path to resolve be the first argument. However, when writing the e2e
tests I realised that diverging from the syscall API is just going to
cause confusion.

This is also a decent test case for our symbol versioning being used to
keep old binaries working (though in practice this is just a straight-up
breakage that doesn't need to be patched over).

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@cyphar cyphar force-pushed the link-argument-order branch from c6e1c6a to 426a6a8 Compare January 10, 2026 13:50
@cyphar
Copy link
Owner Author

cyphar commented Jan 11, 2026

Hmmm, it seems like the symbol versions aren't appearing anymore...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

root: swap target/path arguments for {sym,hard}link

2 participants