Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162569890
D53771.id166511.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
707 B
Referenced Files
None
Subscribers
None
D53771.id166511.diff
View Options
diff --git a/usr.bin/mdo/mdo.c b/usr.bin/mdo/mdo.c
--- a/usr.bin/mdo/mdo.c
+++ b/usr.bin/mdo/mdo.c
@@ -753,8 +753,14 @@
*/
setcred_flags |= SETCREDF_SUPP_GROUPS;
}
- } else if (supp_groups_str == NULL && (supp_mod_str == NULL ||
- supp_mod_str[0] != '@')) {
+ } else if (supp_groups_str == NULL && supp_mod_str != NULL &&
+ supp_mod_str[0] != '@') {
+ /*
+ * We do not need to determine the current groups if, as for the
+ * '!start_from_current_groups' case, we are going to replace
+ * them entirely, but here also if we do not amend them at all
+ * (because they are by definition already in place).
+ */
const int ngroups = getgroups(0, NULL);
if (ngroups > 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 15, 3:49 PM (5 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35105507
Default Alt Text
D53771.id166511.diff (707 B)
Attached To
Mode
D53771: mdo(1): Avoid calling getgroups() in some unnecessary cases
Attached
Detach File
Event Timeline
Log In to Comment