summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-24 10:23:51 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-24 10:23:51 -0700
commit9edeeb4783a5b672fb18abbe8db8b059d4298717 (patch)
treee4d0bcde3348e01eaa946bb0c98f757748958eeb
parentb113b093f4cc4556aba1ed40b987181a0d9eb932 (diff)
downloadvyatta-cfg-quagga-9edeeb4783a5b672fb18abbe8db8b059d4298717.tar.gz
vyatta-cfg-quagga-9edeeb4783a5b672fb18abbe8db8b059d4298717.zip
translate slash in password
If mkpasswd returns password with slash then it needs to be escaped.
-rwxr-xr-xscripts/install-system2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 3b3d406d..12192cb4 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -539,7 +539,7 @@ change_password() {
local user=$1
local pwd
read pwd
- local epwd=$(mkpasswd -H md5 $pwd)
+ local epwd=$(mkpasswd -H md5 $pwd | sed 's:/:\\/':)
sed -i \
-e "/ user $user {/,/}/s/encrypted-password:.*\$/encrypted-password: \"$epwd\"/" \