Skip to content

Conversation

markjdb
Copy link
Member

@markjdb markjdb commented Sep 18, 2025

Plus some assorted cleanups and a new regression test.

No functional change intended.
We should skip over all the leading slashes, not just the first one.
It's very conceivable that some bug or misconfiguration results in
package file paths with multiple leading slashes, and
*at(rootfd, "/foo") ignores rootfd so this could have "fun"
consequences.
This would have caught a bug where pkg-check failed to respect the
rootdir.
uname -r fetches the kernel version, but really it makes more sense to
check the userspace version.  Otherwise these tests fail spuriously when
run on a system running a 16-CURRENT kernel and 15.0-PRERELEASE
userspace.
@bapt bapt merged commit d8bbde1 into freebsd:main Sep 19, 2025
6 checks passed
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.

2 participants