Skip to content

Commit c90f1ea

Browse files
authored
process: replace getuid with rustix::process::getuid (#12094)
replace nix::unistd::getuid with rustix::process::getuid
1 parent 34e71a6 commit c90f1ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uucore/src/lib/features/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn getgid() -> gid_t {
4343

4444
/// `getuid()` returns the real user ID of the calling process.
4545
pub fn getuid() -> uid_t {
46-
nix::unistd::getuid().as_raw()
46+
rustix::process::getuid().as_raw()
4747
}
4848

4949
/// `getpid()` returns the pid of the calling process.

0 commit comments

Comments
 (0)