Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

Commit 104767c

Browse files
committed
fix: Log GID instead of UID in user GID tracing field
The tracing statement for `user.gid` was reading from `user.uid` instead of `user.gid`, causing the wrong value to be reported.
1 parent e4b383e commit 104767c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/system_information/user.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl User {
5353
tracing::info!(
5454
user.name,
5555
user.uid = user.uid.as_ref().map(|uid| format!("{uid:?}")),
56-
user.gid = user.uid.as_ref().map(|gid| format!("{gid:?}")),
56+
user.gid = user.gid.as_ref().map(|gid| format!("{gid:?}")),
5757
"current user"
5858
);
5959
Ok(user)

0 commit comments

Comments
 (0)