Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151363698
D52251.id161801.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
670 B
Referenced Files
None
Subscribers
None
D52251.id161801.diff
View Options
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -459,12 +459,11 @@
db_printf("??? (%#x)\n", p->p_state);
}
if (p->p_ucred != NULL) {
- db_printf(" uid: %d gids: ", p->p_ucred->cr_uid);
- for (i = 0; i < p->p_ucred->cr_ngroups; i++) {
- db_printf("%d", p->p_ucred->cr_groups[i]);
- if (i < (p->p_ucred->cr_ngroups - 1))
- db_printf(", ");
- }
+ db_printf(" uid: %d gid: %d supp gids: ",
+ p->p_ucred->cr_uid, p->p_ucred->cr_gid);
+ for (i = 0; i < p->p_ucred->cr_ngroups; i++)
+ db_printf(i == 0 ? "%d" : ", %d",
+ p->p_ucred->cr_groups[i]);
db_printf("\n");
}
if (p->p_pptr != NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 9:56 PM (2 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31117505
Default Alt Text
D52251.id161801.diff (670 B)
Attached To
Mode
D52251: ddb ps: Print again the effective GID, separately
Attached
Detach File
Event Timeline
Log In to Comment