Skip to content

Do not use domainname on GNU/Hurd - #149

Merged
sylvestre merged 1 commit into
uutils:mainfrom
pinotree:hurd-no-domainname
Dec 4, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
pinotree:hurd-no-domainname

Conversation

@pinotree

@pinotree pinotree commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

While the domainname field in the passwd struct is a GNU extension, the field is not usable on the Hurd implementation of glibc. The libc crate currently exposes it, however the value it gets is either empty or uninitialized bytes.

To make it possible to properly disable that field in the Hurd implementation of the libc crate in the future, stop using the domainname field on Hurd.

While the domainname field in the passwd struct is a GNU extension,
the field is not usable on the Hurd implementation of glibc. The libc
crate currently exposes it, however the value it gets is either empty
or uninitialized bytes.

To make it possible to properly disable that field in the Hurd
implementation of the libc crate in the future, stop using the
domainname field on Hurd.
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.33%. Comparing base (3040de4) to head (c6845e1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #149   +/-   ##
=======================================
  Coverage   94.33%   94.33%           
=======================================
  Files           5        5           
  Lines         812      812           
=======================================
  Hits          766      766           
  Misses         46       46           
Flag Coverage Δ
macos_latest 99.37% <ø> (ø)
ubuntu_latest 99.38% <ø> (ø)
windows_latest 93.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre
sylvestre merged commit 97da213 into uutils:main Dec 4, 2026
18 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

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