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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: karl, Assigned: bugreport)
References
Details
Attachments
(1 file)
|
1.67 KB,
patch
|
LpSolit
:
review+
karl
:
review+
|
Details | Diff | Splinter Review |
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!
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #199490 -
Flags: review?(LpSolit)
Comment 2•20 years ago
|
||
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)
| Reporter | ||
Comment 3•20 years ago
|
||
The original bug is bug 204498.
| Reporter | ||
Comment 4•20 years ago
|
||
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 5•20 years ago
|
||
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+
Updated•20 years ago
|
Assignee: general → bugreport
Flags: approval?
Target Milestone: --- → Bugzilla 2.22
Updated•20 years ago
|
Flags: approval? → approval+
Comment 6•20 years ago
|
||
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
Comment 7•19 years ago
|
||
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
Comment 8•19 years ago
|
||
*** Bug 224695 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Flags: blocking2.20.1?
Flags: blocking2.20.1+
Flags: approval2.20?
Flags: approval2.20+
Comment 9•19 years ago
|
||
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 ago → 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•