diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-24 10:23:51 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-24 10:23:51 -0700 |
commit | 9edeeb4783a5b672fb18abbe8db8b059d4298717 (patch) | |
tree | e4d0bcde3348e01eaa946bb0c98f757748958eeb | |
parent | b113b093f4cc4556aba1ed40b987181a0d9eb932 (diff) | |
download | vyatta-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-x | scripts/install-system | 2 |
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\"/" \ |