Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
34a500eb
Commit
34a500eb
authored
Nov 07, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Operate on uid_idx instead of uid.
parent
34592268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tbsetup/setgroups.in
tbsetup/setgroups.in
+5
-4
No files found.
tbsetup/setgroups.in
View file @
34a500eb
...
...
@@ -187,7 +187,7 @@ $UID = $EUID;
#
if
(
!
scalar
(
@userlist
))
{
$query_result
=
DBQueryFatal
("
select uid from group_membership
"
.
DBQueryFatal
("
select uid
_idx
from group_membership
"
.
"
where pid='
$pid
' and pid=gid
");
$query_result
->
numrows
||
...
...
@@ -201,16 +201,17 @@ if (! scalar(@userlist)) {
#
# Loop through user set, building up the group set and issuing commands.
#
foreach
my
$
uid
(
@userlist
)
{
foreach
my
$
token
(
@userlist
)
{
my
@groupnames
;
my
@grouplist
;
my
$groupargument
;
my
$project
;
my
$user
=
User
->
Lookup
(
$
uid
);
fatal
("
Could not map user
$
uid
to object
")
my
$user
=
User
->
Lookup
(
$
token
);
fatal
("
Could not map user
$
token
to object
")
if
(
!
defined
(
$user
));
my
$uid_idx
=
$user
->
uid_idx
();
my
$uid
=
$user
->
uid
();
if
(
$user
->
webonly
())
{
print
"
Skipping
$uid
; webonly account!
\n
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment