Commit 424d948e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Proper (perhaps) quoting for new password encryption ("modular").

parent 1d19363a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group. # Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
...@@ -348,8 +348,9 @@ if ($control_node ne $BOSSNODE) { ...@@ -348,8 +348,9 @@ if ($control_node ne $BOSSNODE) {
} }
print "Updating user $user password on $control_node.\n"; print "Updating user $user password on $control_node.\n";
$pswd =~ s/\$/\\\\\\\$/g;
if (system("$SSH -host $control_node $CHPASS -p $pswd $user")) { if (system("$SSH -host $control_node $CHPASS -p '$pswd' $user")) {
fatal("Could not change password for user $user on $control_node.\n"); fatal("Could not change password for user $user on $control_node.\n");
} }
} }
......
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