Closed Bug 312386 Opened 20 years ago Closed 19 years ago

Checksetup fails to check for existing group_group_map for new admins

Categories

(Bugzilla :: Bugzilla-General, defect)

2.20
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: karl, Assigned: bugreport)

References

Details

Attachments

(1 file)

bug 298688 created 2 groups, sudoers and sudo_protect. When checksetup.pl creates the groups, it automatically inserted rows into group_group_map so that: * All members of the admin group get membership in the sudoers group * All members of the admin group get bless privileges in the sudoers group * All members of the admin group get bless privileges in the sudo_protect group * All members of the sudoers group get membership in the sudo_protect group However, there is a small problem with this. On lines 4418 to 4425 of checksetup.pl, a group_group_map entry is inserted for every group so that administrators are made members of each non-admin group. Of course, for sudoers and sudo_protect this has already been done!
Attachment #199490 - Flags: review?(LpSolit)
Comment on attachment 199490 [details] [diff] [review] check before re-adding group_group_map entries karl wrote the original code. I want his opinion on it.
Attachment #199490 - Flags: review?(karl)
The original bug is bug 204498.
Comment on attachment 199490 [details] [diff] [review] check before re-adding group_group_map entries This is essentially the same patch I was going to make (I was going to use COUNT(*) and selectrow_array). I do have 2 nits (using ' vs. ", and right-aligning the WHERE and AND lines), but they can be easily ignored (they might not even be nits). On the testing end, I managed to run checksetup on a fresh installation without crashing. As far as I can see it is fine.
Attachment #199490 - Flags: review?(karl) → review+
Comment on attachment 199490 [details] [diff] [review] check before re-adding group_group_map entries r=LpSolit by inspection, and based on karl's review
Attachment #199490 - Flags: review?(LpSolit) → review+
Assignee: general → bugreport
Flags: approval?
Target Milestone: --- → Bugzilla 2.22
Flags: approval? → approval+
Checking in checksetup.pl; /cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl new revision: 1.442; previous revision: 1.441 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
2.20 is affected too. The patch applies cleanly and works correctly.
Status: RESOLVED → REOPENED
Flags: blocking2.20.1?
Flags: approval2.20?
Resolution: FIXED → ---
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
Version: 2.21 → 2.20
*** Bug 224695 has been marked as a duplicate of this bug. ***
Flags: blocking2.20.1?
Flags: blocking2.20.1+
Flags: approval2.20?
Flags: approval2.20+
2.20: Checking in checksetup.pl; /cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl new revision: 1.412.2.13; previous revision: 1.412.2.12 done
Status: REOPENED → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: