aboutsummaryrefslogtreecommitdiff
path: root/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2025-08-04 23:09:58 +0000
committerKyle Evans <kevans@FreeBSD.org>2025-08-04 23:09:58 +0000
commit90b315233a3362b7427e2d2649eaa8acf0da197a (patch)
treedb5c815a712a0bcf63cc826cc0f21424e51f8ed5 /source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h
parent28f618fcc2b42066f68a9459e4178adffe08d35b (diff)
id: revert to historical and documented behavior for `id`HEADmain
The manpage claims that we display the credentials for the calling process if no user/flags are specified, but this has not been true since r145628 / 68b9b81e792a9108d. Currently, we display: - uid from the calling process - gid from /etc/passwd - egid from the calling process, if different from that gid - supplementary groups from the calling process This doesn't really match the description in the manpage, and it doesn't match other implementations. Fix it to use the current process credentials for the gid as well. Drop the extra arguments to id_print(), since these facts can be derived from whether we're displaying live data (`pw == NULL`) or not. Reviewed by: olce Differential Revision: https://reviews.freebsd.org/D51689
Diffstat (limited to 'source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h')
0 files changed, 0 insertions, 0 deletions