Page MenuHomeFreeBSD

D53771.id166511.diff
No OneTemporary

D53771.id166511.diff

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

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)

Event Timeline