Skip to content
GitLab
Menu
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
be6a4277
Commit
be6a4277
authored
Jun 10, 2002
by
Leigh B. Stoller
Browse files
Fix a quoting error caused by new sshtb.
parent
95b5e7d9
Changes
1
Show whitespace changes
Inline
Side-by-side
tbsetup/mkacct.in
View file @
be6a4277
...
...
@@ -225,7 +225,7 @@ if (system("$SSH -host $control_node egrep -q -s '^${user}:' /etc/passwd")) {
print
"
Adding user
$user
(
$user_number
) to
$control_node
.
\n
";
if
(
system
("
$SSH
-host
$control_node
"
.
"
'
$USERADD
$user
-u
$user_number
-c
\"
$fullname
\"
"
.
"
'
$USERADD
$user
-u
$user_number
-c
\\
\"
$fullname
\
\\
"
"
.
"
-k /usr/share/skel -m -d
$HOMEDIR
/
$user
"
.
"
-g
$default_groupname
-s /bin/tcsh'
"))
{
fatal
("
Could not add user
$user
(
$user_number
) to
$control_node
.
\n
");
...
...
@@ -238,7 +238,7 @@ else {
# MAKE SURE not to update anything else!
#
if
(
system
("
$SSH
-host
$control_node
"
.
"
'
$USERMOD
$user
-c
\"
$fullname
\"
'
"))
{
"
'
$USERMOD
$user
-c
\\
\"
$fullname
\
\\
"
'
"))
{
fatal
("
Could not modify user
$user
record on
$control_node
.
");
}
}
...
...
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