Skip to content

process: replace getuid with rustix::process::getuid#12094

Open
Franklin-Qi wants to merge 1 commit intouutils:mainfrom
Franklin-Qi:fix-bug#12042-replace-getuid-with-rustix
Open

process: replace getuid with rustix::process::getuid#12094
Franklin-Qi wants to merge 1 commit intouutils:mainfrom
Franklin-Qi:fix-bug#12042-replace-getuid-with-rustix

Conversation

@Franklin-Qi
Copy link
Copy Markdown

replace nix::unistd::getuid with rustix::process::getuid

closed: #12042

replace nix::unistd::getuid with rustix::process::getuid
@oech3
Copy link
Copy Markdown
Contributor

oech3 commented Apr 30, 2026

Is uid_t correct?

@oech3
Copy link
Copy Markdown
Contributor

oech3 commented Apr 30, 2026

It would be nice to replace other get*id()'s (if it is possible with small diff).

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/rm/isatty (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/tail/retry is no longer failing!
Note: The gnu test tests/expand/bounded-memory is now being skipped but was previously passing.
Note: The gnu test tests/env/env-signal-handler was skipped on 'main' but is now failing.

@xtqqczze
Copy link
Copy Markdown
Contributor

Is uid_t correct?

It should be rustix::process::RawUid

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.

replace getuid with rustix::process:getuid

3 participants