Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0f08bd26
Commit
0f08bd26
authored
Jun 19, 2015
by
Leigh B Stoller
Browse files
Minor change to keep from touching user home directory.
parent
6c1560d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
account/addpubkey.in
View file @
0f08bd26
...
...
@@ -277,7 +277,7 @@ if (defined($user)) {
}
#
# If invoked as "nobody" we came from the web interface. We have to have
7
# If invoked as "nobody" we came from the web interface. We have to have
# a credential in the environment, unless its just a key verification
# operation, which anyone can do.
#
...
...
@@ -360,7 +360,7 @@ if (!$verify) {
!
$nodelete
)
{
fatal
("
You are not allowed to set pubkeys for
$target_user
\n
");
}
if
(
-
d
"
$HOMEDIR
/
$user_uid
/.ssh
"
)
{
if
(
$target_user
->
SameUser
(
$this_user
)
&&
$this_user
->
active
()
)
{
# Drop root privs, switch to target user.
$EUID
=
$UID
=
$USERUID
;
$genmode
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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