Commit f7a5687a authored by Leigh Stoller's avatar Leigh Stoller

Call mkgroup the new way (with a group index, not a pid and gid).

Actually, you can still use pid and gid, but the new format for all
scripts will be to use either idx, pid,gid (pid,eid), or pid/gid
(pid/eid). Consistency is good.

Lbs
parent dcc8ae90
......@@ -183,6 +183,8 @@ my $target_project = Project->Lookup($pid);
if (! defined($target_project)) {
fatal("Could not map project $pid to its object!");
}
my $pid_idx = $target_project->pid_idx();
my $gid_idx = $target_project->gid_idx();
#
# The welcome message ...
......@@ -255,7 +257,7 @@ $leader->SetStatus(USERSTATUS_ACTIVE()) == 0 or
#
$EUID = $UID;
system("$MKGROUP $pid $pid") == 0 or
system("$MKGROUP $gid_idx") == 0 or
fatal("$MKGROUP $pid failed!");
if ($WIKISUPPORT) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment