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
abcbe37c
Commit
abcbe37c
authored
Jul 22, 2010
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better sanity checking on ssh keys.
parent
6d7bbb83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
protogeni/lib/GeniUser.pm.in
protogeni/lib/GeniUser.pm.in
+8
-2
No files found.
protogeni/lib/GeniUser.pm.in
View file @
abcbe37c
...
...
@@ -333,8 +333,11 @@ sub Create($$$$;$)
}
#
Insert
the
sshkey
if
we
got
one
.
if
(
defined
($
keys
))
{
if
(
defined
($
keys
)
&&
ref
($
keys
)
)
{
foreach
my
$
keyref
(@{
$
keys
})
{
next
if
(
!ref($keyref));
my
$
key
=
$
keyref
->{
'key'
};
my
$
type
=
$
keyref
->{
'type'
};
...
...
@@ -385,11 +388,14 @@ sub Modify($$$$)
"where idx='$idx'"
));
}
if
(
defined
($
keys
))
{
if
(
defined
($
keys
)
&&
ref
($
keys
)
)
{
return
-
1
if
(
!DBQueryWarn("delete from geni_userkeys where uuid='$uuid'"));
foreach
my
$
keyref
(@{
$
keys
})
{
next
if
(
!ref($keyref));
my
$
key
=
$
keyref
->{
'key'
};
my
$
type
=
$
keyref
->{
'type'
};
...
...
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