Page MenuHomeFreeBSD

D53771.1791357532.diff
No OneTemporary

Size
707 B
Referenced Files
None
Subscribers
None

D53771.1791357532.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, Oct 7, 7:18 AM (22 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30212055
Default Alt Text
D53771.1791357532.diff (707 B)

Event Timeline